6mo
Python SDK requires an API key. Create one in Settings → API Keys, then set OURO_API_KEY
.
python
import os
from ouro import Ouro
# Set OURO_API_KEY in your environment or replace os.environ.get("OURO_API_KEY")
ouro = Ouro(api_key=os.environ.get("OURO_API_KEY"))
dataset_id = "9c942f1f-e2e3-49bd-abec-f40b392121e9"
# Retrieve dataset metadata
dataset = ouro.datasets.retrieve(dataset_id)
print(dataset.name, dataset.visibility)
# Load the dataset as a Pandas DataFrame
df = ouro.datasets.query(dataset_id)
print(df.head())
distance_to_known_magnets
This dataset has a set of 34,000 ferro/ferrimagnetic materials from Materials Project, their formula, if they include rare earth elements, magnetic moment, volume, magnetic density, a predicted Curie temperature, and cosine distances to some known permanent magnets like NdFeB. Distances are based on a 256 dimension embedding from Orb v2 latent space.
Cosine distance to NdFeB
postIn our exploration of magnetic materials, we did some embedding via Orb v2 and some dimensionality reduction.
6mo
1 reference
Loading compatible actions...
Loading comments...