Active Learning
The Active Learning Test in RagaAI optimises dataset by selecting the most representative data points within a specified budget.
Execute Test:
The code snippet below outlines the steps to configure and execute an Active Learning Test, which intelligently selects the most representative samples from your dataset.
Step 1: Define Active Learning Parameters
Start by specifying the parameters that will guide the Active Learning process.
active_learning()
: Initialises the Active Learning Test.test_session
: The session object associated with your RagaAI project.dataset_name
: The name of the dataset you're looking to optimize.test_name
: A name for this specific test iteration, such as "active_learning_5".type
: The type of test, which is "active_learning" in this case.output_type
: The expected result of the test, "curated_dataset"embed_col_name
: The column name in your dataset that contains the embeddings, here it is "hr_embedding" which suggests high-resolution image embeddings.budget
: A variable that defines the limit on the number of data points to select.
test_session.add()
: Registers the Active Learning Test with the session.
test_session.run()
: Triggers the execution of all tests that have been added to the session, including your Active Learning Test.
By completing the steps above, you have successfully initiated an Active Learning Test in RagaAI.
Analysing Test Results
![](https://docs.raga.ai/~gitbook/image?url=https%3A%2F%2F1811327582-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYbIiNdp1QbG4avl7VShw%252Fuploads%252FqwQmIMmhKBDTmV2Aq8TL%252Fimage.png%3Falt%3Dmedia%26token%3Dd4c96a6e-ff8f-4a61-a418-dc6006e04389&width=768&dpr=4&quality=100&sign=9591aa69&sv=1)
Classification: Each data point is marked as 'included' or 'excluded' based on its representativeness.
Inclusion: The algorithm aims to include as many data points as your budget allows.
Reviewing Results
Embedding View: Assess the overall dataset distribution and selected points.
Datagrid View: Browse through individual data points categorised by the test.
Image Analysis and Adjustment
Image View: Inspect specific images and their similar counterparts.
Manual Adjustment: Use the include/exclude option to refine your dataset manually.
Finalising Dataset
Export: Once satisfied, export the revised dataset as a CSV file.
This test will allow you to maximise the value of your dataset by ensuring that the most informative data points are used within the constraints of your specified budget.
Last updated