-
Notifications
You must be signed in to change notification settings - Fork 31
Description
firstly, I run pip install and import then.
I beleive that's just a sk_learn issue:
from speedml import Speedml
/usr/local/envs/py3env/lib/python3.5/site-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
"This module will be removed in 0.20.", DeprecationWarning)
I put the testing csv file(the titanic file) to datalab folder:
!pwd
/content/datalab
df_train.to_csv('speed_ml_train.csv',index=False)
df_test.to_csv('speed_ml_test.csv',index=False)
train = pd.read_csv('speed_ml_train.csv')
test = pd.read_csv('speed_ml_test.csv')
train.head()
test.head()
it worked well.
then I try:
DATASET = Speedml('speed_ml_train.csv','speed_ml_test.csv', target='Survived', uid='PasserngerId')
I got fialed with:
TypeError Traceback (most recent call last)
in ()
----> 1 DATASET = Speedml('speed_ml_train.csv','speed_ml_test.csv', target='Survived', uid='PasserngerId')
/usr/local/envs/py3env/lib/python3.5/site-packages/speedml/init.py in init(self, train, test, target, uid)
27 Open datasets train and test as CSV or JSON files and store in pandas DataFrames Base.train and Base.test. Set Base.target and Base.uid values based on parameters. Initialize Plot, Feature, and Xgb components.
28 """
---> 29 self._setup_environment()
30
31 Base.target = target
/usr/local/envs/py3env/lib/python3.5/site-packages/speedml/init.py in _setup_environment(self)
87 # Plots inline within Notebook output
88 ipython = get_ipython()
---> 89 ipython.magic('matplotlib inline')
90
91 def info(self):
/usr/local/envs/py3env/lib/python3.5/site-packages/IPython/core/interactiveshell.py in magic(self, arg_s)
2208 magic_name, _, magic_arg_s = arg_s.partition(' ')
2209 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2210 return self.run_line_magic(magic_name, magic_arg_s, _stack_depth=2)
2211
2212 #-------------------------------------------------------------------------
TypeError: _run_line_magic() got an unexpected keyword argument '_stack_depth'