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

from kats.models.metalearner.get_metadata import GetMetaData Error #293

Open
nebiyebulan opened this issue Jan 12, 2023 · 0 comments
Open

Comments

@nebiyebulan
Copy link

When I use the getmetadata module of kats, I get this error. I want to build the model, but I can't.
build_model

` def build_model(ts,end_day):

    df = ts.to_dataframe().set_index('time').loc[:end_day]
    df = df.tail(20000)
    newts = TimeSeriesData(df.reset_index())
    MD = GetMetaData(data=newts[:], error_method='smape')
    metadata=MD.get_meta_data()
    #dfp_rank = pd.DataFrame.from_dict(metadata['hpt_res'], orient="index", columns=["parameter", "metric"])

    best_params = metadata['hpt_res'][metadata['best_model']][0]
    best_model = MD.all_models[metadata['best_model']]
    params = MD.all_params[metadata_['best_model']](**best_params)
    print(best_model)
    print(params)`
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