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
AssertionError: d3m.primitive_interfaces.base.CallResult[d3m.container.list.List] #21
Comments
Could you provide the d3m version that you installed? Thanks |
Maybe I should change the version.. |
Our backend is the version of 2020.05.18, we have fixed the version in the setup.py. You can clone the latest version in master branch, and do "pip install -e ." again. It should be able the install the correct version. |
It works.Thanks!!! |
Hey @lhenry15 I am facing the same error. I used the correct version of d3m which is
|
when i run example1.py
`import pandas as pd
from tods import schemas as schemas_utils
from tods.utils import generate_dataset, generate_problem, evaluate_pipeline
table_path = 'datasets/yahoo_sub_5.csv'
target_index = 6 # what column is the target
metric = 'F1_MACRO' # F1 on both label 0 and 1
Read data and generate dataset and problem
df = pd.read_csv(table_path)
dataset = generate_dataset(df, target_index)
problem_description = generate_problem(dataset, metric)
Load the default pipeline
pipeline = schemas_utils.load_default_pipeline()
Run the pipeline
pipeline_result = evaluate_pipeline(dataset, pipeline, metric)
`
the result :
ssh:///anaconda3/envs/tods/bin/python -u /home//tods/examples/example1.py
Not all provided hyper-parameters for the data preparation pipeline 79ce71bd-db96-494b-a455-14f2e2ac5040 were used: ['method', 'number_of_folds', 'randomSeed', 'shuffle', 'stratified']
Traceback (most recent call last):
File "/home//tods/examples/example1.py", line 19, in
pipeline_result = evaluate_pipeline(dataset, pipeline, metric)
File "/home//tods/tods/utils.py", line 86, in evaluate_pipeline
data_preparation_params=data_preparation_params)
File "/home//tods/src/axolotl/axolotl/backend/base.py", line 263, in evaluate_pipeline
data_preparation_params=data_preparation_params, scoring_params=scoring_params, timeout=timeout
File "/home//tods/src/axolotl/axolotl/backend/simple.py", line 166, in evaluate_pipeline_request
volumes_dir=self.volumes_dir, scratch_dir=self.scratch_dir, runtime_environment=self.runtime_environment
File "/home//tods/src/d3m/d3m/runtime.py", line 1530, in evaluate
scratch_dir=scratch_dir, runtime_environment=runtime_environment,
File "/home//tods/src/d3m/d3m/runtime.py", line 1488, in prepare_data
scratch_dir=scratch_dir, environment=runtime_environment,
File "/home//tods/src/d3m/d3m/runtime.py", line 236, in init
self.pipeline.check(allow_placeholders=False, standard_pipeline=self.is_standard_pipeline)
File "/home//tods/src/d3m/d3m/metadata/pipeline.py", line 1496, in check
self._check(allow_placeholders, standard_pipeline, input_types)
File "/home/****/tods/src/d3m/d3m/metadata/pipeline.py", line 1766, in _check
assert issubclass(produce_type, base.CallResult), produce_type
AssertionError: d3m.primitive_interfaces.base.CallResult[d3m.container.list.List]
Process finished with exit code 1
The text was updated successfully, but these errors were encountered: