Created
February 26, 2022 15:29
-
-
Save Breta01/aed22dfd6c46e4fbd0690796549f4d7d to your computer and use it in GitHub Desktop.
Example of obtaining CID of custom model for feltoken.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.linear_model import Ridge | |
from felt.builder import upload_model | |
model = Ridge(alpha=0.7) | |
# Make sure you have WEB3_STORAGE_TOKEN environment variable defined | |
cid = upload_model(model) | |
print("CID:", cid) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment