Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ jobs:
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
- name: Set up Python
uses: actions/setup-python@v6 # https://github.com/actions/setup-python
with:
python-version: '3.12'
- name: Perform build
env:
SCALA_VERSION: ${{ matrix.scala-version }}
Expand Down Expand Up @@ -112,7 +116,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v6 # https://github.com/actions/setup-python
with:
python-version: '3.9'
python-version: '3.12'
- name: Publish to PyPI
Comment thread
jverbus marked this conversation as resolved.
run: ./gradlew publishPythonPackage
env:
Expand Down
2 changes: 1 addition & 1 deletion isolation-forest-onnx/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 88
target-version = ['py39']
target-version = ['py311']
exclude = '''
/(
venv
Expand Down
6 changes: 3 additions & 3 deletions isolation-forest-onnx/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
avro-python3==1.9.1
numpy==1.26.4
onnx==1.17.0
onnxruntime==1.19.2
numpy==2.2.6
onnx==1.21.0
onnxruntime==1.24.1
protobuf==5.29.6
8 changes: 4 additions & 4 deletions isolation-forest-onnx/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ keywords = isolation forest, ONNX
packages = isolationforestonnx
package_dir =
= src
python_requires = >=3.9
python_requires = >=3.11
install_requires =
avro_python3==1.9.1
numpy==1.26.4
onnx==1.17.0
onnxruntime==1.18.0
numpy==2.2.6
onnx==1.21.0
onnxruntime==1.24.1
protobuf==5.29.6

[options.extras_require]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ def convert(self) -> ModelProto:
helper.make_opsetid("", 14),
],
)
# Pin IR version for maximum portability across ONNX runtimes.
# The model only uses opset 14, which is fully supported by IR 10.
model.ir_version = 10
Comment thread
jverbus marked this conversation as resolved.

try:
checker.check_model(model)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _roc_auc_score(y_true, y_score):
fpr = np.concatenate(([0], fpr))

# Compute the AUC using trapezoidal integration
auc = np.trapz(tpr, fpr)
auc = np.trapezoid(tpr, fpr)

return auc

Expand Down