From 425a41fdd992baa96d4e640c6bb784db7e4518c4 Mon Sep 17 00:00:00 2001 From: raynardj Date: Fri, 5 Nov 2021 13:23:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=AA=20update=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/async.html | 18 ++-- docs/bert_visualize.html | 32 ++++--- docs/category.html | 49 ++++++---- docs/cross_entropy_weighter.html | 105 +++++++++++++++++++-- docs/df_filter.html | 111 +++++++++++++++++++--- docs/etl.html | 18 ++-- docs/files.html | 31 ++++++- docs/html.html | 62 +++++++------ docs/inter_widgets.html | 62 +++++++------ docs/loopstack.html | 115 ++++++++++++----------- docs/minimum.html | 75 ++++++++++++++- docs/static_file.html | 35 ++++++- docs/wild_tree_and_loss.html | 153 +++++++++++++++++++++++++++---- 13 files changed, 649 insertions(+), 217 deletions(-) diff --git a/docs/async.html b/docs/async.html index ea90d7e..c86cd38 100644 --- a/docs/async.html +++ b/docs/async.html @@ -2,11 +2,13 @@ title: Async + keywords: fastai sidebar: home_sidebar summary: "Async toolset" description: "Async toolset" +nb_path: "nbs/03_async.ipynb" ---
- {% raw %} + {% raw %} +
+ {% endraw %} +
-

Tools and imports

+

Tools and imports

+ {% raw %} +
+ {% endraw %} + + {% raw %} +
@@ -45,12 +57,16 @@

Tools and imports
-

Enters softmax

+

Enters softmax

+ {% raw %} +
@@ -65,12 +81,16 @@

Enters softmax
-

Experience the problem

+

Experience the problem

+ {% raw %} +
@@ -92,6 +112,10 @@

Experience the problem

+ {% endraw %} + + {% raw %} +
+ {% endraw %} + + {% raw %} +
+ {% endraw %} +
+ {% raw %} +
+ {% endraw %} + + {% raw %} + + {% raw %} + + {% endraw %} +
-

The solution

Assume we have certain function, will produce a weight that will bring each cross entropy loss to the same constant scale ${a}$.

+

The solution

Assume we have certain function, will produce a weight that will bring each cross entropy loss to the same constant scale ${a}$.

$L_{i}.f(c_{i})=a$

$f(c_{i})a.log_{10}(c_{i})=a$

Here we can get how to calculate $f(c_{i})$

@@ -635,6 +685,8 @@

The solution&#

+ {% raw %} + + {% endraw %} + + {% raw %} + + {% endraw %} + + {% raw %} + + {% endraw %} +
-

Adjusted CrossEntropy

+

Adjusted CrossEntropy

-
- -
+ {% raw %} +
@@ -743,6 +804,15 @@

class MultiTaskCE

+ {% endraw %} + + {% raw %} + +
+ +
+ {% endraw %} +

Let's make this adjustment into the loss function, an upgraded version of CrossEntropy

@@ -750,6 +820,8 @@

class MultiTaskCE

+ {% raw %} +
@@ -785,6 +857,10 @@

class MultiTaskCE

+ {% endraw %} + + {% raw %} +
@@ -798,6 +874,10 @@

class MultiTaskCE

+ {% endraw %} + + {% raw %} +
@@ -1152,6 +1232,10 @@

class MultiTaskCE

+ {% endraw %} + + {% raw %} +
@@ -1197,6 +1281,7 @@

class MultiTaskCE

{% endraw %} +
diff --git a/docs/df_filter.html b/docs/df_filter.html index b9b15d8..9ac68c0 100644 --- a/docs/df_filter.html +++ b/docs/df_filter.html @@ -2,10 +2,13 @@ title: Dataframe filter + keywords: fastai sidebar: home_sidebar summary: "Simple dataframe filter, Interactivel y filter column by value, one by one" +description: "Simple dataframe filter, Interactivel y filter column by value, one by one" +nb_path: "nbs/31_df_filter.ipynb" ---
- {% raw %} + {% raw %} +
+ {% endraw %} + + {% raw %} +
+ {% endraw %} + + {% raw %} +
@@ -43,6 +55,10 @@
+ {% endraw %} + + {% raw %} +
@@ -56,6 +72,10 @@
+ {% endraw %} + + {% raw %} +
@@ -237,6 +257,10 @@
+ {% endraw %} + + {% raw %} +
@@ -266,6 +290,10 @@
+ {% endraw %} + + {% raw %} +
@@ -459,15 +487,16 @@
+ {% endraw %} +
-

A tool to filter data

+

A tool to filter data

-
- -
+ {% raw %} +
@@ -488,6 +517,10 @@

pct_to_float
@@ -508,6 +541,10 @@

ensure_pct
@@ -529,6 +566,10 @@

detect_number_column

+ {% endraw %} + + {% raw %} +
@@ -550,6 +591,17 @@

class DataFilter

+ {% endraw %} + + {% raw %} + +
+ +
+ {% endraw %} + + {% raw %} +
@@ -743,6 +795,10 @@

class DataFilter

+ {% endraw %} + + {% raw %} +
@@ -756,6 +812,10 @@

class DataFilter

+ {% endraw %} + + {% raw %} +
@@ -769,12 +829,16 @@

class DataFilter

+ {% endraw %} +
+ {% raw %} +
@@ -956,15 +1020,16 @@

Extract out the dataframe afterwar

+ {% endraw %} +
-

RecursiveFilter

+

RecursiveFilter

-
- -
+ {% raw %} +
@@ -986,6 +1051,10 @@

class LayerTorch

+ {% endraw %} + + {% raw %} +
@@ -1008,6 +1077,10 @@

class Recursi

+ {% endraw %} + + {% raw %} +
@@ -1017,7 +1090,7 @@

class Recursi
-

class RecursiveFilter[source]

RecursiveFilter(data=None, index=None, columns=None, dtype=None, copy=False) :: DataFrame

+

class RecursiveFilter[source]

RecursiveFilter(data=None, index:Axes | None=None, columns:Axes | None=None, dtype:Dtype | None=None, copy:bool | None=None) :: DataFrame

Interactive Pandas DataFrame Filter df = RecursiveFilter(df) @@ -1047,6 +1120,17 @@

class RecursiveFi

+ {% endraw %} + + {% raw %} + +
+ +
+ {% endraw %} + + {% raw %} +
@@ -1060,6 +1144,10 @@

class RecursiveFi

+ {% endraw %} + + {% raw %} +
@@ -1089,6 +1177,7 @@

class RecursiveFi

{% endraw %} +
diff --git a/docs/etl.html b/docs/etl.html index 6121e93..cf220fe 100644 --- a/docs/etl.html +++ b/docs/etl.html @@ -2,11 +2,13 @@ title: ETL Helper + keywords: fastai sidebar: home_sidebar summary: "A combined ETL tool sets" description: "A combined ETL tool sets" +nb_path: "nbs/11_etl.ipynb" ---
- {% raw %} + {% raw %} +
-
+ {% endraw %} -
+ {% raw %} +
@@ -35,7 +40,7 @@
-

get_files[source]

get_files(path:Path, skip:Union[str, List[str]]=None)

+

get_files[source]

get_files(path:Path, skip:Union[str, List[str]]=None)

Get all file paths from a directory

@@ -47,6 +52,10 @@

get_files
@@ -56,7 +65,7 @@

get_files -

file_detail[source]

file_detail(path:Path, skip:Union[str, List[str]]=None)

+

file_detail[source]

file_detail(path:Path, skip:Union[str, List[str]]=None)

Get detailed file information from a directory

@@ -68,6 +77,17 @@

file_detail + +

+ {% endraw %} + + {% raw %} + - {% endraw %} - - {% raw %} - -
-
{% endraw %} @@ -645,13 +647,6 @@

A class designed for running ja
-
- {% endraw %} - - {% raw %} - -
-
{% endraw %} diff --git a/docs/inter_widgets.html b/docs/inter_widgets.html index 34ae09f..3a3bdc0 100644 --- a/docs/inter_widgets.html +++ b/docs/inter_widgets.html @@ -2,11 +2,13 @@ title: Interactive tools + keywords: fastai sidebar: home_sidebar summary: "Very helpful interactive tools" description: "Very helpful interactive tools" +nb_path: "nbs/05_inter_widgets.ipynb" ---
- {% raw %} + {% raw %} +
-
+ {% endraw %} -
+ {% raw %} +
+ {% endraw %} + + {% raw %} +
@@ -49,6 +58,10 @@

now + {% endraw %} + + {% raw %} +
@@ -82,6 +106,10 @@