-
Notifications
You must be signed in to change notification settings - Fork 225
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
Drift Detection Methods -> Learned Kernel -> Dataset format incompatible #798
Comments
Hey @righelcpm, |
I forgot to show the most important: the error message:
|
It looks like your input shape is wrong. If you define the projection as: proj = tf.keras.Sequential(
[
Input(shape=(32, 32, 3)),
Conv2D(8, 4, strides=2, padding='same', activation=tf.nn.relu),
Conv2D(16, 4, strides=2, padding='same', activation=tf.nn.relu),
Conv2D(32, 4, strides=2, padding='same', activation=tf.nn.relu),
Flatten(),
]
) then it expects the data to be shape |
That being said, I'm a little confused what you're doing here: sea_noise = pd.read_csv("/content/drive/MyDrive/Dataset/sea_0123_gradual_noise_0.2_1000.csv")
X_ref_2 = np.transpose(np.vstack([sea_noise.X1.values]))
X_test_2 = np.transpose(np.vstack([sea_noise.X3.values])) It looks like you are fitting on one feature and testing on another. Is this what you mean to do? Can you explain what it is you're trying to attempt and what the data is I might be able to give a better answer. |
I am facing a format incompatibility issue. I have tried to follow the structure here (https://docs.seldon.io/projects/alibi-detect/en/stable/cd/methods/learnedkerneldrift.html).
I could not understand properly the (imput) file format required/needed.
Could someone help me, please?
My code:
pip install alibi-detect
The text was updated successfully, but these errors were encountered: