Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Series' object has no attribute 'as_matrix' -- fitting #112

Closed
mattou78400 opened this issue Mar 24, 2020 · 0 comments
Closed

'Series' object has no attribute 'as_matrix' -- fitting #112

mattou78400 opened this issue Mar 24, 2020 · 0 comments

Comments

@mattou78400
Copy link

Hi,

I tried to fit a model to a pandas table, but it gave me the following error on the auto.fit function
"'Series' object has no attribute 'as_matrix'"

`dataset = pd.read_pickle(self.path_to_metadata + '/ml_dataset.pkl')
dataset.fillna(0, inplace=True)

    train_observations, test_observations = train_test_split(dataset)
    train_observations = train_observations.copy()
    test_observations = test_observations.copy()
    # List out variable types
    data_type_dict = {'numerical': list(dataset.columns.values)}
    output_var_h = 'n_h'

    # Create and fit Automater
    auto = Automater(data_type_dict=data_type_dict, output_var=output_var_h)
    auto.fit(train_observations)`

Do you know what's wrong? I followed the introduction tutorial.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant