{"library":"skope-rules","title":"skope-rules","description":"skope-rules is a Python library for interpretable machine learning. It extracts decision rules from tree-based models to provide transparent predictions. Last version: 1.0.1 (released 2023). Low release cadence.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install skope-rules"],"cli":null},"imports":["from skrules import SkopeRules"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from skrules import SkopeRules\nfrom sklearn.datasets import load_iris\nfrom sklearn.model_selection import train_test_split\n\nX, y = load_iris(return_X_y=True)\nX_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)\n\nclf = SkopeRules(max_depth_duplication=2, n_estimators=10, random_state=42)\nclf.fit(X_train, y_train)\nscores = clf.score(X_test, y_test)\nprint(scores)","lang":"python","description":"Basic usage: train SkopeRules classifier on Iris dataset.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}