Skip to content

Commit 3db9a5c

Browse files
author
Circle CI
committed
Update docs for dev (build 3765)
1 parent f4e1c7a commit 3db9a5c

102 files changed

Lines changed: 197 additions & 193 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dev/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: fef05efec0e5752982a248f2c6f81c34
3+
config: be8c65d642d46f45d8c3b95be69377e5
44
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file not shown.

dev/_downloads/46d3545d2de3fcee6756b7d2ee7fb39f/plot_run_benchmark_python_R.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
f"{BENCHMARK_PATH.resolve()}"
2424
)
2525

26-
save_file = run_benchmark(
26+
_, save_file = run_benchmark(
2727
BENCHMARK_PATH,
2828
solver_names=['Python-PGD[use_acceleration=False]', 'R-PGD'],
2929
dataset_names=["Simulated[n_features=5000,n_samples=100,rho=0]"],
Binary file not shown.
Binary file not shown.
Binary file not shown.

dev/_downloads/cdb26c80ea62f96a318a8bcdbbf34171/plot_run_benchmark.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"outputs": [],
1717
"source": [
18-
"from pathlib import Path\nimport matplotlib.pyplot as plt\nfrom benchopt import run_benchmark\nfrom benchopt.benchmark import Benchmark\nfrom benchopt.plotting import plot_benchmark, PLOT_KINDS\nfrom benchopt.plotting.plot_objective_curve import reset_solver_styles_idx\n\n\nBENCHMARK_PATH = (\n Path().resolve().parent / 'benchmarks' / 'benchmark_logreg_l2'\n)\n\n\ntry:\n\n save_file = run_benchmark(\n BENCHMARK_PATH,\n solver_names=['sklearn[liblinear]', 'sklearn[newton-cg]', 'lightning'],\n dataset_names=[\"Simulated[n_features=500,n_samples=200]\"],\n objective_filters=['L2 Logistic Regression[lmbd=1.0]'],\n max_runs=100, timeout=20, n_repetitions=15,\n plot_result=False, show_progress=True\n )\n\nexcept RuntimeError:\n raise RuntimeError(\n \"This example can only work when Logreg-l2 benchmark is cloned in a \"\n \"`benchmarks` folder. Please run:\\n\"\n \"$ git clone https://github.com/benchopt/benchmark_logreg_l2 \"\n f\"{BENCHMARK_PATH.resolve()}\"\n )\n\n\nkinds = list(PLOT_KINDS.keys())\nreset_solver_styles_idx()\nfigs = plot_benchmark(save_file, benchmark=Benchmark(BENCHMARK_PATH),\n kinds=kinds, html=False)\nplt.show()"
18+
"from pathlib import Path\nimport matplotlib.pyplot as plt\nfrom benchopt import run_benchmark\nfrom benchopt.benchmark import Benchmark\nfrom benchopt.plotting import plot_benchmark, PLOT_KINDS\nfrom benchopt.plotting.plot_objective_curve import reset_solver_styles_idx\n\n\nBENCHMARK_PATH = (\n Path().resolve().parent / 'benchmarks' / 'benchmark_logreg_l2'\n)\n\n\ntry:\n\n _, save_file = run_benchmark(\n BENCHMARK_PATH,\n solver_names=['sklearn[liblinear]', 'sklearn[newton-cg]', 'lightning'],\n dataset_names=[\"Simulated[n_features=500,n_samples=200]\"],\n objective_filters=['L2 Logistic Regression[lmbd=1.0]'],\n max_runs=100, timeout=20, n_repetitions=15,\n plot_result=False, show_progress=True\n )\n\nexcept RuntimeError:\n raise RuntimeError(\n \"This example can only work when Logreg-l2 benchmark is cloned in a \"\n \"`benchmarks` folder. Please run:\\n\"\n \"$ git clone https://github.com/benchopt/benchmark_logreg_l2 \"\n f\"{BENCHMARK_PATH.resolve()}\"\n )\n\n\nkinds = list(PLOT_KINDS.keys())\nreset_solver_styles_idx()\nfigs = plot_benchmark(save_file, benchmark=Benchmark(BENCHMARK_PATH),\n kinds=kinds, html=False)\nplt.show()"
1919
]
2020
}
2121
],

dev/_downloads/d0a19eddcd9b5cc19e309134ae758ece/plot_run_benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
try:
2222

23-
save_file = run_benchmark(
23+
_, save_file = run_benchmark(
2424
BENCHMARK_PATH,
2525
solver_names=['sklearn[liblinear]', 'sklearn[newton-cg]', 'lightning'],
2626
dataset_names=["Simulated[n_features=500,n_samples=200]"],

dev/_downloads/dc84f98e56bc6933a9be8456166d8561/plot_run_benchmark_python_R.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"outputs": [],
1717
"source": [
18-
"from pathlib import Path\nimport matplotlib.pyplot as plt\nfrom benchopt import run_benchmark\nfrom benchopt.benchmark import Benchmark\nfrom benchopt.plotting import plot_benchmark, PLOT_KINDS\nfrom benchopt.plotting.plot_objective_curve import reset_solver_styles_idx\n\n\nBENCHMARK_PATH = Path().resolve().parent / 'benchmarks' / 'benchmark_lasso'\n\nif not BENCHMARK_PATH.exists():\n raise RuntimeError(\n \"This example can only work when Lasso benchmark is cloned in the \"\n \"example folder. Please run:\\n\"\n \"$ git clone https://github.com/benchopt/benchmark_lasso \"\n f\"{BENCHMARK_PATH.resolve()}\"\n )\n\nsave_file = run_benchmark(\n BENCHMARK_PATH,\n solver_names=['Python-PGD[use_acceleration=False]', 'R-PGD'],\n dataset_names=[\"Simulated[n_features=5000,n_samples=100,rho=0]\"],\n objective_filters=['*[fit_intercept=False,reg=0.5]'],\n max_runs=100, timeout=100, n_repetitions=5,\n plot_result=False, show_progress=False\n)\n\n\nkinds = list(PLOT_KINDS.keys())\nreset_solver_styles_idx()\nfigs = plot_benchmark(\n save_file, benchmark=Benchmark(BENCHMARK_PATH), kinds=kinds, html=False\n)\nplt.show()"
18+
"from pathlib import Path\nimport matplotlib.pyplot as plt\nfrom benchopt import run_benchmark\nfrom benchopt.benchmark import Benchmark\nfrom benchopt.plotting import plot_benchmark, PLOT_KINDS\nfrom benchopt.plotting.plot_objective_curve import reset_solver_styles_idx\n\n\nBENCHMARK_PATH = Path().resolve().parent / 'benchmarks' / 'benchmark_lasso'\n\nif not BENCHMARK_PATH.exists():\n raise RuntimeError(\n \"This example can only work when Lasso benchmark is cloned in the \"\n \"example folder. Please run:\\n\"\n \"$ git clone https://github.com/benchopt/benchmark_lasso \"\n f\"{BENCHMARK_PATH.resolve()}\"\n )\n\n_, save_file = run_benchmark(\n BENCHMARK_PATH,\n solver_names=['Python-PGD[use_acceleration=False]', 'R-PGD'],\n dataset_names=[\"Simulated[n_features=5000,n_samples=100,rho=0]\"],\n objective_filters=['*[fit_intercept=False,reg=0.5]'],\n max_runs=100, timeout=100, n_repetitions=5,\n plot_result=False, show_progress=False\n)\n\n\nkinds = list(PLOT_KINDS.keys())\nreset_solver_styles_idx()\nfigs = plot_benchmark(\n save_file, benchmark=Benchmark(BENCHMARK_PATH), kinds=kinds, html=False\n)\nplt.show()"
1919
]
2020
}
2121
],
1.45 KB

0 commit comments

Comments
 (0)