natekupp / ffx

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

ImportError: cannot import name core #46

Closed misgeatgit closed 4 years ago

misgeatgit commented 4 years ago

Got the above error message while trying to run(Both with Python2 and Python3) the following example code from the README:

import numpy as np
import ffx

train_X = np.array( [ (1.5,2,3), (4,5,6) ] ).T
train_y = np.array( [1,2,3])

test_X = np.array( [ (5.241,1.23, 3.125), (1.1,0.124,0.391) ] ).T
test_y = np.array( [3.03,0.9113,1.823])

models = ffx.run(train_X, train_y, test_X, test_y, ["predictor_a", "predictor_b"])
for model in models:
    yhat = model.simulate(test_X)
    print(model)
natekupp commented 4 years ago

thanks for the report, and apologies for the slow response! this is now fixed on master and released oon pypi as 2.0.2.