Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit fc8edfb

Browse files
authored
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.
2 parents 31d3d84 + 8beede3 commit fc8edfb

File tree

3 files changed

+680
-0
lines changed

3 files changed

+680
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Class Assignment Objective
2+
3+
This notebook explains the properties of different class assignment objectives available for the
4+
machine learning data frame analytics classification jobs and give pointers on when to
5+
choose which loss function.
6+
7+
Set up a local instance of Jupyter using the following instructions
8+
9+
1. Create file `credentials.json` containing the username and password to access your Elasticsearch instance.
10+
11+
```json
12+
{
13+
"username": "my_username",
14+
"password": "my_password"
15+
}
16+
```
17+
18+
2. Set up a virtual environment called `env`
19+
20+
```bash
21+
python3 -m venv env
22+
```
23+
24+
3. Activate it
25+
26+
```bash
27+
source env/bin/activate
28+
```
29+
30+
4. Install the required dependencies for your chosen Jupyter notebook
31+
32+
```bash
33+
pip install -r requirements.txt
34+
```
35+
36+
5. Launch Jupyter
37+
38+
```bash
39+
jupyter notebook
40+
```

Machine Learning/Class Assigment Objectives/classification-class-assignment-objective.ipynb

Lines changed: 631 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
eland==7.10.1b1
2+
elasticsearch==7.10.1
3+
jupyter==1.0.0
4+
matplotlib==3.3.4
5+
numpy==1.19.5
6+
pandas==1.1.5
7+
requests==2.25.1
8+
scikit-learn==0.24.1
9+
seaborn==0.11.1

0 commit comments

Comments
 (0)