Skip to content

Commit

Permalink
Add Python syntax highlighting in Markdown chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkf authored May 31, 2022
1 parent cf140d6 commit 6847b84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pip install iterative-stratification
The multilabel cross validators that this package provides may be used with the scikit-learn API in the same manner as any other cross validators. For example, these cross validators may be passed to [cross_val_score](https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.cross_val_score.html) or [cross_val_predict](https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.cross_val_predict.html). Below are some toy examples of the direct use of the multilabel cross validators.

### MultilabelStratifiedKFold
```
```python
from iterstrat.ml_stratifiers import MultilabelStratifiedKFold
import numpy as np

Expand All @@ -45,7 +45,7 @@ TRAIN: [0 3 4 6] TEST: [1 2 5 7]
TRAIN: [1 2 5 7] TEST: [0 3 4 6]
```
### RepeatedMultilabelStratifiedKFold
```
```python
from iterstrat.ml_stratifiers import RepeatedMultilabelStratifiedKFold
import numpy as np

Expand All @@ -67,7 +67,7 @@ TRAIN: [0 1 4 5] TEST: [2 3 6 7]
TRAIN: [2 3 6 7] TEST: [0 1 4 5]
```
### MultilabelStratifiedShuffleSplit
```
```python
from iterstrat.ml_stratifiers import MultilabelStratifiedShuffleSplit
import numpy as np

Expand Down

0 comments on commit 6847b84

Please sign in to comment.