Skip to main content
ArcSight

← HomepageAll repository proofValidation recordState of TS Architecture 2026

Repository proof

scikit-learn architecture

Changing externals/array_api_compat/numpy/__init__.py in scikit-learn reaches 296 modules. 201 files call it directly. Snapshot ee56c8b.

The first file to open in scikit-learn is externals/array_api_compat/numpy/__init__.py. A change there reaches 296 of 353 modules.

This lead file reaches 84% of the graph. The median published proof reaches 60%.

numpy/__init__.py296 · 201 fan-in
common/__init__.py296 · 11 fan-in
cupy/__init__.py296 · 7 fan-in
common/_helpers.py296 · 6 fan-in
array/__init__.py296 · 6 fan-in

Median 60%. Thick bar is blast share. Thin bar is fan-in.

Download the finding

Project: scikit-learn (sklearn) · Score: 67.6/100 (Moderate technical debt) · 353 modules · 2,020 edges · Python · 48 of 54 · Language score median 78.9

Cycles
100+
Duplicate authorities
0
God modules
32
Layer violations
0
arc impact externals/array_api_compat/numpy/__init__.py

Under 3 minutes to first arc impact on a TypeScript monorepo (internal runs).

README badge

ArcSight architecture proof for scikit-learn
[![ArcSight architecture proof for scikit-learn](https://arcsight.ai/badge/proof/sklearn/)](https://arcsight.ai/repositories/sklearn/)

Blast radius paths

Ranked by blast radius. Fan-in is direct dependents. Blast radius is downstream modules reachable from that file.

scikit-learn · ee56c8b

RankFileFan-inBlastShare
1externals/array_api_compat/numpy/__init__.py

concentrates too many responsibilities, sits on a dependency cycle, shared utility hub

20129684%
2externals/array_api_compat/common/__init__.py

sits on a dependency cycle

1129684%
3externals/array_api_compat/cupy/__init__.py

sits on a dependency cycle

729684%
4externals/array_api_compat/common/_helpers.py629684%
5externals/array_api_compat/dask/array/__init__.py629684%
All ranked files
RankFileFan-inBlastShare
6externals/array_api_compat/torch/__init__.py629684%
7externals/array_api_compat/common/_aliases.py529684%
8externals/array_api_compat/common/_linalg.py329684%
9externals/array_api_compat/numpy/_typing.py329684%
10externals/array_api_compat/torch/_typing.py329684%
11externals/array_api_compat/cupy/_aliases.py229684%
12externals/array_api_compat/dask/array/_aliases.py229684%
13externals/array_api_compat/numpy/_aliases.py229684%

Circular dependencies

This snapshot records 100+ dependency cycles.

Nearby proofs

Snapshot notes

In scikit-learn sklearn, a change that begins in numpy __init__.py keeps traveling until it reaches common __init__.py, with cupy __init__.py as the third file on that walk and the common-_typing.py group as the group around them, snapshot mark eaabaeedcf.

common _helpers.py is worth opening beside numpy __init__.py because array __init__.py still participates when common _helpers.py moves, and torch __init__.py stays in view for scikit-learn sklearn, snapshot mark eaabaeedcf.

Review common _aliases.py only after common __init__.py and common _linalg.py are both on the table, since the link from numpy _typing.py back to cupy __init__.py belongs to scikit-learn sklearn under snapshot mark eaabaeedcf.

torch _typing.py and cupy _aliases.py are later stops, and a reviewer who has already seen numpy __init__.py should still look at array _aliases.py before treating the common-_typing.py group as understood for scikit-learn sklearn, snapshot mark eaabaeedcf.

numpy _aliases.py closes the file list after utils _param_validation.py and numpy __init__.py, which keeps the scikit-learn sklearn note tied to snapshot mark eaabaeedcf, and the files named in this paragraph are the ones the review is willing to stand on.

Subsystem overview

  • common-_typing.py (19 modules)
  • _lib-_typing.py (30 modules)
  • ROOT_CLUSTER (264 modules)

CLI workflow

Impact, then scan, fix, finish, and watch.

  • arc impact <file>See what a change breaks
  • arc scanFind issues
  • arc fixApply fixes
  • arc finishResolve remaining
  • arc watchKeep clean

More commands (explain, guard…) →

FAQ

Which file should change first in scikit-learn sklearn: numpy __init__.py?
Start with numpy __init__.py, because the rest of the scikit-learn sklearn walk leaves from that file and common __init__.py is the next file in the same review. Commit eaabaeedcf records it.
What else is on the scikit-learn sklearn walk besides numpy __init__.py and cupy __init__.py?
cupy __init__.py and common _helpers.py stay on the walk with array __init__.py, which are different files from numpy __init__.py inside the common-_typing.py group for scikit-learn sklearn. Commit eaabaeedcf records it.
How should a reviewer use torch __init__.py in the scikit-learn sklearn snapshot?
Keep torch __init__.py, common _aliases.py, and common _linalg.py open together, then check numpy _typing.py before merging the scikit-learn sklearn change. Commit eaabaeedcf records it.
Where does the scikit-learn sklearn review stop after torch _typing.py?
Stop after torch _typing.py, cupy _aliases.py, and array _aliases.py have been compared with numpy __init__.py, leaving the common-_typing.py group until those scikit-learn sklearn files are clear. Commit eaabaeedcf records it.

Run ArcSight on your repo

Install locally, then run arc impact on the file you plan to change — before merge.

npx arcsight init
arc impact <path>
Install ArcSight →

Embed this report

Use this iframe to show the architecture badge on your site.

<iframe src="https://arcsight.ai/embed/sklearn/" width="320" height="180" frameborder="0"></iframe>

Explore

Evidence-backed analysis snapshot. snapshot.json · How ArcSight measures blast radius · Install · Homepage demo