Get started
Quickstart
Start your first optimization run in about ten minutes.
This page shows how to start your first run in about ten minutes. You sign in, upload a small dataset, fill in the four wizard steps, and start the run. In the example, Skynet creates a new repository that sorts support messages into labels, and then improves it.
Before you start
You need:
- A Skynet account.
- A GitHub account. Skynet creates the repository in this account.
- A CSV, JSON or Excel file (
.csv,.json,.xlsxor.xls). Each row is one case. - One or more input columns, for example
message. - One expected-output column, for example
label.
Use at least 5 rows. With fewer than 5 pairs, Skynet keeps no test set, so the final score comes from cases the optimizer used.
1. Sign in
Sign in to Skynet. Connect GitHub in Settings → Connectors. Then open the submit page at /submit.
This page uses the labels of the Standard level. The Guided level uses simpler labels, skips the Optimizer step, and selects Auto for you. Change the level in Settings.
2. Task
The first step is Task. It asks "What do you want to optimize?"
- In Objective, write what a good result is. Use plain words, for example "Sort each support message into billing, bug or other."
- Optional: in Background, add context that helps the optimizer.
- Select Create a new repository. Enter a name, for example
support-labels, and select Private or Public.
Skynet creates the repository in your GitHub account. The assistant writes a first solution from your task and data. This solution is the starting version. If you already have code, select Use a repository instead. Read Submit a run.
3. Inputs
The second step is Inputs.
- Select Upload a CSV, JSON or Excel file, or Pick from library to use a saved dataset.
- Under How to read the data, give each column a role:
- Input: your code receives this column.
- Output: the expected value. The scorer receives it.
- Skip: Skynet does not use this column.
- Keep Use recommendation for the split. For most datasets the split is 70% train, 15% validation and 15% test.
Read Datasets and splits for the full rules.
4. Optimizer
The third step is Optimizer ("Optimizer, models and budget").
- Keep the optimizer on Auto.
- Select a Reflection model. The optimizer uses it to write new versions. This model is required.
- Under Budget, keep Max scorer runs at its default of 200.
Read Engines to pick a specific engine.
5. Metric & run
The last step is Metric & run. The assistant writes the scorer and the ascent.toml file for you. You can edit them. The [run] entry runs one version of the repository on one case. The scorer gets the output of the entry and the case:
version = 1
[run]
entry = "serve.py:serve"def score(repo_path, case, output=None):
got = str(output).strip().lower()
want = case["expected"]["label"].strip().lower()
if got == want:
return {"score": 1.0, "feedback": "Correct label."}
return {"score": 0.0, "feedback": f"Expected '{want}', got '{got}'."}case["input"] holds the Input columns of one case. case["expected"] holds the Output column, keyed by its column name. The repository has a serve.py file with def serve(input). The [run] entry calls it, and output is its return value. The scorer runs in a separate sandbox box with only your metric files and no version code, so it cannot import serve.py. Skynet uses the same function to serve the best version after the run.
Then run the check. The check runs your setup, the [run] entry and your scorer on the starting version in the sandbox. You can start the run only after the check passes.
6. Start and watch
The summary screen shows "Ready to run". Its tabs are General, Data, Models, Budget and Reward. Check the setup, then start the optimization.
Open the run from your optimizations list to watch it. Skynet pushes each candidate to its own branch in your new repository. The skynet/best branch always points at the best version. Read Results to understand the scores and the winning version.
Next steps
- Write a better scorer: Metrics and scorers.
- Learn how the engines work: How optimization works.
- Learn what a run costs: Billing.