Skip to content

Commit a3ac53f

Browse files
authored
Merge pull request #16 from Leona-LYT/main
fix layout issue
2 parents 1c5f519 + 6c86296 commit a3ac53f

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed

doc/source/examples/Path_solution.ipynb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"id": "J7xL_K8gBmyx"
1616
},
1717
"source": [
18-
"### We use the simulated data together with different `loss` function and `constraint` to solve the optimization problem. Meanwhile, a plot of path solution concerning different C values will be displayed.\n",
18+
"[![Slides](https://img.shields.io/badge/🦌-ReHLine-blueviolet)](https://rehline-python.readthedocs.io/en/latest/)\n",
1919
"\n",
20-
"\n",
21-
"* All the following test used `warm-start` technique.\n",
20+
"We use the simulated data together with different `loss` function and `constraint` to solve the optimization problem. Meanwhile, a plot of path solution concerning different C values will be displayed.\n",
2221
"\n",
2322
"\n",
23+
"* All the following test used `warm-start` technique.\n",
2424
"\n"
2525
]
2626
},
@@ -30,7 +30,7 @@
3030
"id": "I5W3Bs0PGsZ3"
3131
},
3232
"source": [
33-
"### We first run a SVM with `nonnegative` constraint"
33+
"#### SVM with `nonnegative` constraint"
3434
]
3535
},
3636
{
@@ -142,7 +142,7 @@
142142
"id": "f8bC1orCGC8c"
143143
},
144144
"source": [
145-
"### Then try SVM with `fair` constraint"
145+
"#### SVM with `fair` constraint"
146146
]
147147
},
148148
{
@@ -269,12 +269,12 @@
269269
"id": "gBJKC2i3QvRf"
270270
},
271271
"source": [
272-
"### Moreover, we tried `Quantile regression` without any constraint"
272+
"#### `Quantile regression` without any constraint"
273273
]
274274
},
275275
{
276276
"cell_type": "code",
277-
"execution_count": 2,
277+
"execution_count": null,
278278
"metadata": {
279279
"id": "CHl2pnAgP22T"
280280
},
@@ -297,7 +297,7 @@
297297
},
298298
{
299299
"cell_type": "code",
300-
"execution_count": 3,
300+
"execution_count": null,
301301
"metadata": {
302302
"id": "xkbOmo6ORSju"
303303
},
@@ -312,7 +312,7 @@
312312
},
313313
{
314314
"cell_type": "code",
315-
"execution_count": 4,
315+
"execution_count": null,
316316
"metadata": {
317317
"colab": {
318318
"base_uri": "https://localhost:8080/",

doc/source/examples/Warm_start.ipynb

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
"id": "xHMXYL9ebbgA"
1616
},
1717
"source": [
18-
"### Now we use the dataset \"madelon\" and compare the time executed with and without `warm-start` technique\n"
18+
"[![Slides](https://img.shields.io/badge/🦌-ReHLine-blueviolet)](https://rehline-python.readthedocs.io/en/latest/)\n",
19+
"\n",
20+
"Now we use the dataset \"madelon\" and compare the time executed with and without `warm-start` technique\n"
1921
]
2022
},
2123
{
2224
"cell_type": "code",
23-
"execution_count": 3,
25+
"execution_count": null,
2426
"metadata": {
2527
"id": "BUs9CUEutZTf"
2628
},
@@ -35,7 +37,7 @@
3537
},
3638
{
3739
"cell_type": "code",
38-
"execution_count": 4,
40+
"execution_count": null,
3941
"metadata": {
4042
"id": "HczbGdJrAGEE"
4143
},
@@ -55,7 +57,7 @@
5557
},
5658
{
5759
"cell_type": "code",
58-
"execution_count": 5,
60+
"execution_count": null,
5961
"metadata": {
6062
"collapsed": true,
6163
"id": "p-F6g4M9Fqdg"
@@ -69,7 +71,7 @@
6971
},
7072
{
7173
"cell_type": "code",
72-
"execution_count": 8,
74+
"execution_count": null,
7375
"metadata": {
7476
"colab": {
7577
"base_uri": "https://localhost:8080/"
@@ -157,7 +159,7 @@
157159
},
158160
{
159161
"cell_type": "code",
160-
"execution_count": 6,
162+
"execution_count": null,
161163
"metadata": {
162164
"colab": {
163165
"base_uri": "https://localhost:8080/"
@@ -215,7 +217,7 @@
215217
},
216218
{
217219
"cell_type": "code",
218-
"execution_count": 9,
220+
"execution_count": null,
219221
"metadata": {
220222
"colab": {
221223
"base_uri": "https://localhost:8080/"
@@ -278,13 +280,14 @@
278280
},
279281
"source": [
280282
"## Time comparison\n",
281-
"### The above summary table shows the `warm-start` solver is 3.20 times faster than the `cold-start` solver.\n",
282-
"### The warm-start solver also consistently reaches optimal results within the maximum iteration limit, which the cold-start solver doesn't. This means the actual speedup from warm-starting is likely even higher."
283+
"The above summary table shows the `warm-start` solver is **3.20 times faster** than the `cold-start` solver.\n",
284+
"\n",
285+
"The warm-start solver also consistently reaches optimal results within the maximum iteration limit, which the cold-start solver doesn't. This means the actual speedup from warm-starting is likely even higher."
283286
]
284287
},
285288
{
286289
"cell_type": "code",
287-
"execution_count": 10,
290+
"execution_count": null,
288291
"metadata": {
289292
"colab": {
290293
"base_uri": "https://localhost:8080/",

0 commit comments

Comments
 (0)