{"id":22376,"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.","status":"active","version":"1.0.1","language":"python","source_language":"en","source_url":"https://github.com/scikit-learn-contrib/skope-rules","tags":["interpretable-ml","rule-learning","scikit-learn-contrib","decision-rules"],"install":[{"cmd":"pip install skope-rules","lang":"bash","label":"pip install"}],"dependencies":[],"imports":[{"wrong":"from skrules import SkopeRules","symbol":"SkopeRules","correct":"from skrules import SkopeRules"}],"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."},"warnings":[{"fix":"Use 'from skrules import SkopeRules'.","message":"The import path uses 'skrules' not 'skope_rules'. Using 'from skope_rules import SkopeRules' will raise ImportError.","severity":"gotcha","affected_versions":"all"},{"fix":"Use clf.score(X_test, y_test) which returns per-class scores. For overall accuracy, compute manually: (clf.predict(X_test) == y_test).mean()","message":"SkopeRules.score() returns a list of scores (one per class) for multi-class problems, not a single accuracy. This differs from sklearn convention.","severity":"gotcha","affected_versions":"all"},{"fix":"Use 'max_depth' if available, else 'max_depth_duplication'.","message":"Parameter 'max_depth_duplication' is deprecated in favor of 'max_depth' in future versions? Not officially deprecated yet, but be cautious with parameter names.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'1.0.1':30 '2023':32 'base':22 'cadenc':35 'contrib':45 'decis':17,47 'decision-rul':46 'extract':16 'interpret':12,37 'interpretable-ml':36 'last':28 'learn':14,41,44 'librari':10 'low':33 'machin':13 'ml':38 'model':23 'predict':27 'provid':25 'python':9 'releas':31,34 'rule':3,6,18,40,48 'rule-learn':39 'scikit':43 'scikit-learn-contrib':42 'skope':2,5 'skope-rul':1,4 'transpar':26 'tree':21 'tree-bas':20 'version':29","created_at":"2026-04-27T17:04:50.423404+00:00","updated_at":"2026-04-27T17:04:50.423404+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmpuxrd0w95/venv/lib/python3.12/site-packages/skrules/__init__.py\", line 1, in <module>\n    from .skope_rules import SkopeRules\n  File \"/tmp/tmpuxrd0w95/venv/lib/python3.12/site-packages/skrules/skope_rules.py\", l"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.0.1","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/scikit-learn-contrib/skope-rules","docs":null,"changelog":null,"pypi":"https://pypi.org/project/skope-rules/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}