GET YOUR HANDS ON BLACKSWAN 🦢

Upload your database, select a column to perform a prediction over, and get insights within seconds.

pip install algorithmeai
# Load the AWS API Wrapper
from algorithmeai import BlackSwanClassifier
# Generate a model (up to 10 000 rows) over the first boolean column
model = BlackSwanClassifier("train.csv")
# Get confidence% for each rows
model.get_confidence("backtest.csv")
# Get auc for the model
model.get_auc("backtest.csv")
# Improve model
model.improve()
# Improve recall of the model
model.improveRecall()
# Improve precision of the model
model.improvePrecision()
# Safely save your model
model.to_json("final-model.json")
# Load model from json
new_model = BlackSwanClassifier("final-model.json")
# Generate an array of population items
population = new_model.make_population("backtest.csv")
# Get audit for item
item = population[0]
audit = new_model.get_audit(item)
# Get global feature importan ce
new_model.get_global_feature_importance("backtest.csv")

© 2025 Algorithme. All rights reserved.