Skip to content

nbsato/forestcluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forestcluster

Python package for clustering assisted by the random forest.

Installation

$ python -m pip install git+https://github.com/nbsato/forestcluster.git

Usage

Assume that you have a fitted sklearn.ensemble.RandomForestRegressor object, estimator, and a set of feature vectors, X.

Import the package:

>>> import forestcluster

Transform the feature vectors:

>>> Xt = forestcluster.transform(estimator, X)

Perform clustering:

>>> Z = forestcluster.cluster(Xt)

Assign cluster labels to samples:

>>> labels = forestcluster.assign_labels(Z)

License

Apache License, Version 2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages