Skip to content

Commit f4ca4bb

Browse files
committed
Update comment and readme
1 parent e676ddb commit f4ca4bb

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# STree
2+
13
![CI](https://github.com/Doctorado-ML/STree/workflows/CI/badge.svg)
24
[![CodeQL](https://github.com/Doctorado-ML/STree/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/Doctorado-ML/STree/actions/workflows/codeql-analysis.yml)
35
[![codecov](https://codecov.io/gh/doctorado-ml/stree/branch/master/graph/badge.svg)](https://codecov.io/gh/doctorado-ml/stree)
@@ -6,11 +8,10 @@
68
![https://img.shields.io/badge/python-3.11%2B-blue](https://img.shields.io/badge/python-3.11%2B-brightgreen)
79
[![DOI](https://zenodo.org/badge/262658230.svg)](https://zenodo.org/badge/latestdoi/262658230)
810

9-
# STree
11+
![Stree](https://raw.github.com/doctorado-ml/stree/master/example.png)
1012

1113
Oblique Tree classifier based on SVM nodes. The nodes are built and splitted with sklearn SVC models. Stree is a sklearn estimator and can be integrated in pipelines, grid searches, etc.
1214

13-
![Stree](https://raw.github.com/doctorado-ml/stree/master/example.png)
1415

1516
## Installation
1617

stree/Splitter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ def partition(self, samples: np.array, node: Snode, train: bool):
746746
Train time - True / Test time - False
747747
"""
748748
# data contains the distances of every sample to every class hyperplane
749-
# array of (m, nc) nc = # classes
749+
# array of (m, nc) nc = k if ovr, nc = k*(k-1)/2 if ovo
750750
data = self._distances(node, samples)
751751
if data.shape[0] < self._min_samples_split:
752752
# there aren't enough samples to split

0 commit comments

Comments
 (0)