-
Notifications
You must be signed in to change notification settings - Fork 45
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
object has no attribute '_is_compiled' #124
Comments
Hi @kerrycobb, |
I've encountered the error with 3.11 and 3.10 as well. So I'm using version 0.4.3 with python 3.10 for now. Just wanted to bring attention to this in case it was helpful.
|
Ok, thank you @kerrycobb, Adapt 0.4.3 forces Tensorflow version below 2.12, so it can explain why it works while Adapt 0.4.4 don't. I tried the example on Google colab, and it works fine with Adapt 0.4.4. I think the default Tensorflow version of Colab is still 2.15. Best, |
Hi! Have a similar issue: And get forcing !pip install Tensorflow==2.15 made the trick =) |
Hi @artem-math-1, A solution to run your code in Colab is to first install adapt then reinstall tensorflow 2.15: !pip install adapt
!pip install tensorflow==2.15 Then, you can run your code: from sklearn.linear_model import RidgeClassifier
from adapt.utils import make_classification_da
from adapt.instance_based import IWN
Xs, ys, Xt, yt = make_classification_da()
model = IWN(RidgeClassifier(0.), Xt=Xt, sigma_init=0.1, random_state=0,
pretrain=False, pretrain__epochs=100, pretrain__verbose=0)
model.fit(Xs, ys, epochs=100, batch_size=256, verbose=1)
model.score(Xt, yt) |
When trying to run the DANN example from the API documentation with version 0.4.4 I encounter the error below. Version 0.4.3 does not produce this error, though.
The text was updated successfully, but these errors were encountered: