natekupp / ffx

Fast Function Extraction
http://trent.st/ffx
Other
80 stars 97 forks source link

ElasticNetWithTimeout.__init__() got an unexpected keyword argument 'l1_ratio' #7

Closed keyvan-m-sadeghi closed 11 years ago

keyvan-m-sadeghi commented 11 years ago

I get the following error using the latest version of core.py

Traceback (most recent call last): File "/home/keyvan/Git/opencog/opencog/python/spatiotemporal/temporal_events/init.py", line 2, in from generic import TemporalEvent, TemporalInstance, TemporalEventPiecewiseLinear File "/home/keyvan/Git/opencog/opencog/python/spatiotemporal/temporal_events/generic.py", line 2, in from spatiotemporal.temporal_events.formulas import FormulaCreator, TemporalFormulaConvolution File "/home/keyvan/Git/opencog/opencog/python/spatiotemporal/temporal_events/init.py", line 14, in models = ffx.run(train_X, train_y, test_X, test_y, ["predictor_a", "predictor_b"]) File "/usr/local/lib/python2.7/dist-packages/ffx/api.py", line 4, in run return core.MultiFFXModelFactory().build(train_X, train_y, test_X, test_y, varnames, verbose) File "/usr/local/lib/python2.7/dist-packages/ffx/core.py", line 442, in build next_models = FFXModelFactory().build(train_X, train_y, ss, varnames, verbose) File "/usr/local/lib/python2.7/dist-packages/ffx/core.py", line 583, in build ss, varnames, order1_bases, X, y, max_num_bases, target_train_nmse, verbose) File "/usr/local/lib/python2.7/dist-packages/ffx/core.py", line 682, in _basesToModels max_num_bases, target_train_nmse, verbose) File "/usr/local/lib/python2.7/dist-packages/ffx/core.py", line 726, in _pathwiseLearn max_iter=max_iter, **fit_params) TypeError: init() got an unexpected keyword argument 'l1_ratio'

keyvan-m-sadeghi commented 11 years ago

Seems like I had an old version of sklearn installed. Solved by updating, the example in Readme now works. However I noticed that one of the sklearn APIs that you use is deprecated and will be removed soon. So I opened #8