Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and hombit committed Sep 3, 2024
1 parent 9f57e36 commit 4238b04
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions scripts/plotext_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
sys.path.append("..")

import plotext as plt

from coniferest.datasets import Label, MalanchevDataset

dataset = MalanchevDataset(inliers=100, outliers=10, regions=(Label.R, Label.R, Label.A))
Expand Down
1 change: 1 addition & 0 deletions scripts/plotext_pineforest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import numpy as np
import plotext as plt

from coniferest.datasets import Label, MalanchevDataset
from coniferest.pineforest import PineForest

Expand Down
1 change: 1 addition & 0 deletions tests/test_aadforest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import numpy as np
import pytest

from coniferest.aadforest import AADForest
from coniferest.datasets import single_outlier
from coniferest.label import Label
Expand Down
3 changes: 2 additions & 1 deletion tests/test_coniferest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

import numpy as np
import pytest
from coniferest.coniferest import Coniferest
from numpy.testing import assert_equal
from sklearn.tree._tree import Tree

from coniferest.coniferest import Coniferest


class ConiferestImpl(Coniferest):
def fit(self, data, labels=None):
Expand Down
3 changes: 2 additions & 1 deletion tests/test_datasets.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import numpy as np
from coniferest.datasets import dev_net_dataset, plasticc_gp, ztf_m31
from numpy.testing import assert_allclose, assert_array_equal

from coniferest.datasets import dev_net_dataset, plasticc_gp, ztf_m31


def test_ztf_m31():
data, metadata = ztf_m31()
Expand Down
5 changes: 3 additions & 2 deletions tests/test_isoforest.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import numpy as np
import pytest
from numpy.testing import assert_allclose, assert_equal
from sklearn.ensemble import IsolationForest as SkIsolationForest

from coniferest.datasets import MalanchevDataset
from coniferest.isoforest import IsolationForest
from coniferest.sklearn.isoforest import IsolationForestEvaluator
from numpy.testing import assert_allclose, assert_equal
from sklearn.ensemble import IsolationForest as SkIsolationForest


@pytest.fixture()
Expand Down
1 change: 1 addition & 0 deletions tests/test_onnx.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import numpy as np
import onnx
import onnxruntime as rt

from coniferest.aadforest import AADForest
from coniferest.datasets import single_outlier
from coniferest.onnx import to_onnx
Expand Down
1 change: 1 addition & 0 deletions tests/test_session.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import numpy as np
import pytest

from coniferest.aadforest import AADForest
from coniferest.datasets import non_anomalous_outliers, ztf_m31
from coniferest.label import Label
Expand Down

0 comments on commit 4238b04

Please sign in to comment.