DTAnalyze-1.0


توضیحات

Python Decision Tree Analysis
ویژگی مقدار
سیستم عامل OS Independent
نام فایل DTAnalyze-1.0
نام DTAnalyze
نسخه کتابخانه 1.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Nicholas T. Smith
ایمیل نویسنده nicholastsmithblog@gmail.com
آدرس صفحه اصلی https://github.com/nicholastoddsmith/DTAnalyze
آدرس اینترنتی https://pypi.org/project/DTAnalyze/
مجوز -
# DTAnalyze Functions to estimate importance of features in determining predictions for individual samples (aka "feature activations"). Fast `nogil` implementation in Cython. ## Example Usage ``` import numpy as np from sklearn.ensemble import RandomForestRegressor from DTAnalyze.Activation import GetActivations A = np.random.rand(256, 3) Y = (2 * (A[:, 0] > 0.5) - (A[:, 1] < 0.5) - (A[:, 2] > 0.5) + np.random.normal(0, 0.1, size=256)) rfr = RandomForestRegressor(n_jobs=4).fit(A, Y) L1 = GetActivations(rfr, A) ``` ## Install `python setup.py build_ext` Then copy build artifact into `DTAnalyze` (sub) folder and put that folder somewhere in your path.


نحوه نصب


نصب پکیج whl DTAnalyze-1.0:

    pip install DTAnalyze-1.0.whl


نصب پکیج tar.gz DTAnalyze-1.0:

    pip install DTAnalyze-1.0.tar.gz