README.md in isotree-0.1.4 vs README.md in isotree-0.1.5
- old
+ new
@@ -4,11 +4,11 @@
Learn how [Isolation Forest](https://www.youtube.com/watch?v=RyFQXQf4w4w) works
:deciduous_tree: Check out [OutlierTree](https://github.com/ankane/outliertree) for human-readable explanations of outliers
-[![Build Status](https://travis-ci.org/ankane/isotree.svg?branch=master)](https://travis-ci.org/ankane/isotree)
+[![Build Status](https://github.com/ankane/isotree/workflows/build/badge.svg?branch=master)](https://github.com/ankane/isotree/actions)
## Installation
Add this line to your application’s Gemfile:
@@ -41,10 +41,22 @@
model.predict(data)
```
Scores are between 0 and 1, with higher scores indicating outliers
+Export the model
+
+```ruby
+model.export_model("model.bin")
+```
+
+Import a model
+
+```ruby
+model = IsoTree::IsolationForest.import_model("model.bin")
+```
+
## Parameters
Pass parameters - default values below
```ruby
@@ -112,9 +124,18 @@
Then reinstall the gem.
```sh
gem uninstall isotree --force
bundle install
+```
+
+## Deployment
+
+Check out [Trove](https://github.com/ankane/trove) for deploying models.
+
+```sh
+trove push model.bin
+trove push model.bin.metadata
```
## Reference
Get the average isolation depth