Skip to content

cannot unpack non-iterable NoneType object #200

Description

@sanketsarang

Getting the following error when running AutoAI on the Heart Failure Prediction dataset.

No trials are completed yet.
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/tmp/ipykernel_549/4056359983.py in <module>
----> 1 model = bc.train(file='./heart.csv', target='HeartDisease')

/opt/conda/lib/python3.9/site-packages/blobcity/main/driver.py in train(file, df, target, features, use_neural, accuracy_criteria)
     61     else:
     62         CleanedDF=dataCleaner(dataframe,features,target,dict_class)
---> 63     #model search space
     64     accuracy_criteria= accuracy_criteria if accuracy_criteria<=1.0 else (accuracy_criteria/100)
     65     modelClass = model_search(CleanedDF,target,dict_class,disable_colinearity,use_neural=use_neural,accuracy_criteria=accuracy_criteria)

/opt/conda/lib/python3.9/site-packages/blobcity/main/modelSelection.py in model_search(dataframe, target, DictClass, use_neural, accuracy_criteria)
    235                 DictClass.UpdateNestedKeyValue('model','classification_type',cls_type)
    236                 DictClass.UpdateNestedKeyValue('model','save_type',"h5")
--> 237             if ptype=='Regression':
    238                 DictClass.UpdateNestedKeyValue('model','save_type',"pb")
    239             class_name="Neural Network"

TypeError: cannot unpack non-iterable NoneType object

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions