8000 DOC Documents fixed to increase speed by removing for loop (#27066) · scikit-learn/scikit-learn@b32cbff · GitHub
[go: up one dir, main page]

Skip to content

Commit b32cbff

Browse files
narendrasinghdangijeremiedbb
authored andcommitted
DOC Documents fixed to increase speed by removing for loop (#27066)
1 parent 079fcf5 commit b32cbff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/applications/plot_prediction_latency.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def plot_n_features_influence(percentiles, percentile):
232232
fig, ax1 = plt.subplots(figsize=(10, 6))
233233
colors = ["r", "g", "b"]
234234
for i, cls_name in enumerate(percentiles.keys()):
235-
x = np.array(sorted([n for n in percentiles[cls_name].keys()]))
235+
x = np.array(sorted(percentiles[cls_name].keys()))
236236
y = np.array([percentiles[cls_name][n] for n in x])
237237
plt.plot(
238238
x,

0 commit comments

Comments
 (0)
0