Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions examples/copy_teach_task.py

This file was deleted.

27 changes: 0 additions & 27 deletions examples/create_auto_classification_workflow.py

This file was deleted.

25 changes: 0 additions & 25 deletions examples/dataset_tasks.py

This file was deleted.

20 changes: 0 additions & 20 deletions examples/merge_snapshots.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
from indico_toolkit import create_client
from indico_toolkit.indico_wrapper import Datasets
from indico_toolkit.snapshots import Snapshot

HOST = "app.indico.io"
API_TOKEN_PATH = "./indico_api_token.txt"
PATH_TO_SNAPSHOT = "./snapshot_1.csv"
PATH_TO_SNAPSHOT_2 = "./snapshot_2.csv"
OUTPUT_PATH = "./merged_snapshot_output.csv"
Expand Down Expand Up @@ -34,19 +30,3 @@
# will now include all of the samples from snap_to_append as well
print(main_snap.number_of_samples)
main_snap.to_csv(OUTPUT_PATH)

"""
With that merged snapshot, you can now use the toolkit to upload and train a model.
"""
client = create_client(HOST, API_TOKEN_PATH)
dataset = Datasets(client)
uploaded_dataset = dataset.create_dataset([OUTPUT_PATH], dataset_name="my_dataset")
print(f"My Dataset ID is {uploaded_dataset.id}")
model = dataset.train_model(
uploaded_dataset,
model_name="my_model",
source_col=main_snap.text_col,
target_col=main_snap.label_col,
wait=False,
)
print(f"My Model Group ID is {model.id}")
35 changes: 0 additions & 35 deletions examples/pdf_highlighter.py

This file was deleted.

24 changes: 0 additions & 24 deletions examples/submitting_to_doc_extraction.py

This file was deleted.

3 changes: 0 additions & 3 deletions indico_toolkit/auto_populate/__init__.py

This file was deleted.

Loading