Aletheia icon indicating copy to clipboard operation
Aletheia copied to clipboard

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

Open vvenkatesh-ML opened this issue 4 years ago • 4 comments

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!

vvenkatesh-ML avatar Jun 07 '21 13:06 vvenkatesh-ML

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 avatar Jun 08 '21 06:06 ZebinYang

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.

ZebinYang avatar Jun 08 '21 07:06 ZebinYang

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!

vvenkatesh-ML avatar Jun 09 '21 22:06 vvenkatesh-ML

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

ZebinYang avatar Jun 11 '21 09:06 ZebinYang