Skip to content

Commit 457ad1f

Browse files
Update
1 parent f4b9b6a commit 457ad1f

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ sure that it has a shape `(seq_len, n_dims)`.
2525
```python
2626
import numpy as np
2727
import roerich
28+
import roerich.algorithms
2829

2930
X, label = roerich.generate_dataset(period=2000, N_tot=20000)
3031
T = np.arange(len(X))
@@ -34,10 +35,10 @@ To perform change point detection, you can use two algorithms: `CLF` or `RuLSIF`
3435
followed by calling a `predict method`:
3536

3637
```python
37-
cpd = roerich.OnlineNNClassifier(net='default', scaler="default", metric="KL_sym",
38-
periods=1, window_size=10, lag_size=500, step=10, n_epochs=10,
39-
lr=0.1, lam=0.0001, optimizer="Adam"
40-
)
38+
cpd = roerich.algorithms.OnlineNNClassifier(net='default', scaler="default", metric="KL_sym",
39+
periods=1, window_size=10, lag_size=500, step=10, n_epochs=10,
40+
lr=0.1, lam=0.0001, optimizer="Adam"
41+
)
4142

4243
# Detect change points
4344
score, peaks = cpd.predict(X)
@@ -49,10 +50,6 @@ roerich.display(X, T, label, score, T, peaks)
4950
```
5051
![](images/demo.png)
5152

52-
## Changelog
53-
54-
See the [changelog](https://github.com/HSE-LAMBDA/roerich/blob/master/CHANGELOG.md) for a history of notable changes to roerich.
55-
5653
## Thanks to all our contributors
5754

5855
<a href="https://github.com/HSE-LAMBDA/roerich/graphs/contributors">
@@ -87,4 +84,4 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
8784
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
8885
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
8986
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
90-
```
87+
```

0 commit comments

Comments
 (0)