Comments (2)
This should be doable.
from wildboar.
Hi!
You can plot trees now!
import matplotlib.pyplot as plt
from wildboar.datasets import load_two_lead_ecg
from wildboar.tree import ShapeletTreeClassifier, plot_tree
X_train, X_test, y_train, y_test = load_two_lead_ecg(merge_train_test=False)
clf = ShapeletTreeClassifier(
n_shapelets=1,
impurity_equality_tolerance=0.0,
metric="scaled_euclidean",
random_state=1,
)
clf.fit(X_train, y_train)
clf.score(X_test, y_test)
fig, ax = plt.subplots(figsize=(10, 6))
plot_tree(clf, ax=ax, class_labels=False)
from wildboar.
Related Issues (20)
- ShapeletForestEmbedding returns a matrix of all ones HOT 1
- RocketClassifier with n_jobs > 1 while using cross_validation does not work
- RocketClassifier predict_proba is not working
- RocketClassifier does not have a classes_-property
- 'IsolationShapeletForest' object has no attribute 'n_dims_'
- Bug when using dict or list scoring in importances
- Transform of SAX and PAA does not check if fitted
- ShapeletForestClassifier does not support single dimension 3D input (i.e. shape (10, 1, 20)) HOT 2
- Load multiple datasets with merge_train_test=False
- Support pairwise_distance(2d-array, 3d-array) HOT 2
- will it work for windows ? HOT 3
- you request scikit-learn>=1.2rc1,<1.3a0 but pip install -U wildboar installs very old scikit-learn-1.1.3 HOT 4
- Assigned leaf node in decision_path() HOT 2
- Unecessary splits in shapele trees
- CI builds fail on Windows.
- Raises ModuleNotFoundError when importing the datasets module
- Update What's New for Version 1.2
- _check_estimator_name no longer included in sklearn.utils.validation HOT 12
- Timeout too low
- Unstable sort results in failing test with Numpy 2.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wildboar.