Skip to content
Advertisement

Tag: machine-learning

Reshaping problem (Input to reshape is a tensor with 10 values, but the requested shape has 1)

I’m trying to recreate this work using my own dataset: https://www.kaggle.com/code/amyjang/tensorflow-pneumonia-classification-on-x-rays/notebook I’ve made some slight tweaks to the code to accommodate my data but I don’t think that is what is causing an issue here; it could be though of course. My code: And the error: I can gather from the error that I have a mismatch in resizing, I

inverse_transform() takes 2 positional arguments but 3 were given

I’m trying to use Canonical Correlation Analysis (CCA) in scikit-learn. Still, I’m getting a TypeError, which asserts inverse_transform() takes 2 positional arguments but 3 were given. Here is my code: And the last line throws a TypeError: It’s ridiculous since I passed two arguments exactly, named x_test and predicted. If you’re curious about shape of x_test and predicted: How to

Advertisement