� � � � � � � � �
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # usage: | |
| # wget https://gist.githubusercontent.com/taroyabuki/ecb0da01ab85e0a0524383b97d17ae0f/raw/dc962ef5e8b13bfc2aa7b1bcea2edba7918cfd10/makepdf.sh | |
| # docker run -it -e ROOT=TRUE -v $(pwd):/home/rstudio/work rocker/verse bash /home/rstudio/work/makepdf.sh | |
| cd /home/rstudio/work | |
| git clone -b japanese https://github.com/hacarus/interpretable-ml-book-ja.git | |
| cd interpretable-ml-book-ja |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| year | population | |
|---|---|---|
| 1872 | 34806 | |
| 1873 | 34985 | |
| 1874 | 35154 | |
| 1875 | 35316 | |
| 1876 | 35555 | |
| 1877 | 35870 | |
| 1878 | 36166 | |
| 1879 | 36464 | |
| 1880 | 36649 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| experiment | weather | lecture | goout | |
|---|---|---|---|---|
| T | rainy | F | F | |
| T | sunny | T | T | |
| T | rainy | T | F | |
| F | rainy | T | F | |
| F | sunny | T | T |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 北海道 | Hokkaido | |
|---|---|---|
| 青森 | Aomori | |
| 岩手 | Iwate | |
| 宮城 | Miyagi | |
| 秋田 | Akita | |
| 山形 | Yamagata | |
| 福島 | Fukushima | |
| 茨城 | Ibaraki | |
| 栃木 | Tochigi | |
| 群馬 | Gumma |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Hokkaido | 861 | |
|---|---|---|
| Aomori | 790 | |
| Iwate | 790 | |
| Miyagi | 824 | |
| Akita | 790 | |
| Yamagata | 790 | |
| Fukushima | 798 | |
| Ibaraki | 849 | |
| Tochigi | 853 | |
| Gumma | 835 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 北海道 | 861 | |
|---|---|---|
| 青森 | 790 | |
| 岩手 | 790 | |
| 宮城 | 824 | |
| 秋田 | 790 | |
| 山形 | 790 | |
| 福島 | 798 | |
| 茨城 | 849 | |
| 栃木 | 853 | |
| 群馬 | 835 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VennDiagram[n_, ineqs_: {}] := Module[{i, r = .6, R = 1, v, x, y, f}, | |
| v = Table[Circle[r {Cos[#], Sin[#]} &[2 Pi (i - 1)/n], R], {i, n}]; | |
| { | |
| If[ineqs == {}, {}, | |
| f = And @@ (v /. Circle[{xx_, yy_}, rr_] :> (x - xx)^2 + (y - yy)^2 < rr^2)[[ineqs]]; | |
| RegionPlot[ImplicitRegion[f, | |
| {x, y}], Axes -> False, | |
| DisplayFunction -> Identity][[1]] | |
| ], | |
| v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| map = Import["http://mathforum.org/wagon/fall97/images/5colormap.gif"]; | |
| matrix = MorphologicalComponents[map]; | |
| vars = Flatten[Map[{p[#], q[#]} &, Rest[Union[Flatten[matrix]]]]]; | |
| f[r_] := Map[If[Length[Union[#]] > 2, Sort[Select[#, Positive]], Nothing] &, | |
| Partition[r, 4, 1]]; | |
| neighbours = Union[Flatten[Map[f, Join[matrix, Transpose[matrix]]], 1]]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.apfloat</groupId> | |
| <artifactId>apfloat</artifactId> | |
| <version>1.8.2</version> | |
| </dependency> | |
| </dependencies> | |
| */ | |
| import org.apfloat.*; |
NewerOlder