This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explaining class assignment objectives for data frame analytics jobs (#…
…357) This PR adds a notebook that explains the properties of different class assignment objectives available for the machine learning data frame analytics classification jobs and gives pointers on when to choose which objective. It intends to be linked in the "Concepts" section of the documentation and provide users with more insights than it is possible in the scope of "Concepts". The rendered version of the jupyter notebook can be found here. Closes #356.
- Loading branch information
Showing
3 changed files
with
680 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Class Assignment Objective | ||
|
||
This notebook explains the properties of different class assignment objectives available for the | ||
machine learning data frame analytics classification jobs and give pointers on when to | ||
choose which loss function. | ||
|
||
Set up a local instance of Jupyter using the following instructions | ||
|
||
1. Create file `credentials.json` containing the username and password to access your Elasticsearch instance. | ||
|
||
```json | ||
{ | ||
"username": "my_username", | ||
"password": "my_password" | ||
} | ||
``` | ||
|
||
2. Set up a virtual environment called `env` | ||
|
||
```bash | ||
python3 -m venv env | ||
``` | ||
|
||
3. Activate it | ||
|
||
```bash | ||
source env/bin/activate | ||
``` | ||
|
||
4. Install the required dependencies for your chosen Jupyter notebook | ||
|
||
```bash | ||
pip install -r requirements.txt | ||
``` | ||
|
||
5. Launch Jupyter | ||
|
||
```bash | ||
jupyter notebook | ||
``` |
631 changes: 631 additions & 0 deletions
631
Machine Learning/Class Assigment Objectives/classification-class-assignment-objective.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
eland==7.10.1b1 | ||
elasticsearch==7.10.1 | ||
jupyter==1.0.0 | ||
matplotlib==3.3.4 | ||
numpy==1.19.5 | ||
pandas==1.1.5 | ||
requests==2.25.1 | ||
scikit-learn==0.24.1 | ||
seaborn==0.11.1 |