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

TypeError with "fit" function within the "UnwrapperClassifier" function #6

Open
vvenkatesh-ML opened this issue Jun 7, 2021 · 4 comments

Comments

@vvenkatesh-ML
Copy link

Hi,

When I am trying to use the fit function with the UnwrapperClassfier, I constantly keep getting a type error that says the following:
aletheia_error
I am not sure if this is an issue faced earlier, but if further details can be provided for the input data types for the functions that would be helpful as well.
Looking forward to hearing from you, thank you very much!

@ZebinYang
Copy link
Collaborator

Hi,

It seems to be related to the mismatch of your X_train and weights, i.e., the number of input features (X_train.shape[1]) does not match the number of rows of the first hidden layer weights (weights[0].shape[0]).

@ZebinYang
Copy link
Collaborator

Another possible reason is that if your response varable y has more than one column, then you will also get an error. Currently, the package only supports binary classification.

@vvenkatesh-ML
Copy link
Author

Hi,

Thanks so much for your solution! I was able to solve that error by matching all the dimensions within the weights of the hidden layers.
But I am receiving another error as seen here:
image
I am using the "UnwrapperClassifier" on a CNN based network, but all the input values have been vectorized. I am not sure what formatting error is being recognized.
Looking forward to hearing from you!

@ZebinYang
Copy link
Collaborator

That is because your weight list and bias list have different lengths.

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

2 participants