ECSP




Pay Notebook Creator: Haige Cui0
Set Container: Numerical CPU with TINY Memory for 10 Minutes 0
Total0
In [2]:
from sklearn import linear_model
reg = linear_model.linearRegression()
feg.fit([[0,0],[1,1],[2,2]],[0,1,2])
reg.coef_
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-2-7575b1f3f7bf> in <module>
      1 from sklearn import linear_model
----> 2 reg = linear_model.linearRegression()
      3 feg.fit([[0,0],[1,1],[2,2]],[0,1,2])
      4 reg.coef_

AttributeError: module 'sklearn.linear_model' has no attribute 'linearRegression'
In [ ]:
from sklearn.model_selection import cross_val_score
In [ ]:
t = pd.read_csv('')
In [ ]:
t.columns
In [ ]:
x t[['Tree Count Within 100 Meters',
    'Sum of Distances from']]
In [1]:
import pickle
In [2]:
pickle.dump(model1, open('/tmp/model/pkl','wb'))
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-2-c13948dbc1ab> in <module>
----> 1 pickle.dump(model1, open('/tmp/model/pkl','wb'))

NameError: name 'model1' is not defined
In [ ]:
ls /tmp/*.pkl