Skip to content

Instantly share code, notes, and snippets.

@Breta01
Created February 26, 2022 15:29
Show Gist options
  • Save Breta01/aed22dfd6c46e4fbd0690796549f4d7d to your computer and use it in GitHub Desktop.
Save Breta01/aed22dfd6c46e4fbd0690796549f4d7d to your computer and use it in GitHub Desktop.
Example of obtaining CID of custom model for feltoken.
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