Nyckel Python SDK
Nyckel is a Custom Classification API. It allows you to train, deploy and invoke custom text, image and tabular classification functions.
from nyckel import Credentials, TextClassificationFunction
cred = Credentials(client_id="...", client_secret="...")
func = TextClassificationFunction.create("IsToxic", cred)
func.create_samples([
("This is a nice comment", "Not toxic"),
("Hello friend", "Not toxic"),
("I hate people like you", "Toxic"),
("Who is this? Go away!", "Toxic"),
])
predictions = func.invoke(["This example is fantastic!"])