-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththe-phase-separation-binary-classifier-where-to-read-more-about-it.html
More file actions
executable file
·195 lines (151 loc) · 10.9 KB
/
the-phase-separation-binary-classifier-where-to-read-more-about-it.html
File metadata and controls
executable file
·195 lines (151 loc) · 10.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<html lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title> 5 The Phase Separation Binary Classifier: where to read more about it | Binary classification as a phase separation process - a short tutorial</title>
<meta name="description" content="This is a minimal example of using the bookdown package to write a book. The output format for this example is bookdown::gitbook." />
<meta name="generator" content="bookdown 0.20 and GitBook 2.6.7" />
<meta property="og:title" content=" 5 The Phase Separation Binary Classifier: where to read more about it | Binary classification as a phase separation process - a short tutorial" />
<meta property="og:type" content="book" />
<meta property="og:description" content="This is a minimal example of using the bookdown package to write a book. The output format for this example is bookdown::gitbook." />
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content=" 5 The Phase Separation Binary Classifier: where to read more about it | Binary classification as a phase separation process - a short tutorial" />
<meta name="twitter:description" content="This is a minimal example of using the bookdown package to write a book. The output format for this example is bookdown::gitbook." />
<meta name="date" content="2021-09-27" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="prev" href="sec-mnist.html"/>
<script src="libs/jquery-2.2.3/jquery.min.js"></script>
<link href="libs/gitbook-2.6.7/css/style.css" rel="stylesheet" />
<link href="libs/gitbook-2.6.7/css/plugin-table.css" rel="stylesheet" />
<link href="libs/gitbook-2.6.7/css/plugin-bookdown.css" rel="stylesheet" />
<link href="libs/gitbook-2.6.7/css/plugin-highlight.css" rel="stylesheet" />
<link href="libs/gitbook-2.6.7/css/plugin-search.css" rel="stylesheet" />
<link href="libs/gitbook-2.6.7/css/plugin-fontsettings.css" rel="stylesheet" />
<link href="libs/gitbook-2.6.7/css/plugin-clipboard.css" rel="stylesheet" />
<script src="libs/accessible-code-block-0.0.1/empty-anchor.js"></script>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<div class="book without-animation with-summary font-size-2 font-family-1" data-basepath=".">
<div class="book-summary">
<nav role="navigation">
<ul class="summary">
<li><a href="./">Binary classification as a phase separation process</a></li>
<li class="divider"></li>
<li class="chapter" data-level="1" data-path="index.html"><a href="index.html"><i class="fa fa-check"></i><b>1</b> Introduction</a></li>
<li class="chapter" data-level="2" data-path="a-few-examples.html"><a href="a-few-examples.html"><i class="fa fa-check"></i><b>2</b> Nonlinear diffusion equations: a numerical example</a><ul>
<li class="chapter" data-level="2.1" data-path="a-few-examples.html"><a href="a-few-examples.html#propagation-with-randomly-generated-coefficients"><i class="fa fa-check"></i><b>2.1</b> Propagation with randomly generated coefficients</a></li>
</ul></li>
<li class="chapter" data-level="3" data-path="sec-PSBC.html"><a href="sec-PSBC.html"><i class="fa fa-check"></i><b>3</b> A glimpse at the PSBC model</a></li>
<li class="chapter" data-level="4" data-path="sec-mnist.html"><a href="sec-mnist.html"><i class="fa fa-check"></i><b>4</b> Applying the PSBC to pairs of digits of the MNIST database</a><ul>
<li class="chapter" data-level="4.1" data-path="sec-mnist.html"><a href="sec-mnist.html#multiclass-classification-using-the-psbc"><i class="fa fa-check"></i><b>4.1</b> Multiclass classification using the PSBC</a><ul>
<li class="chapter" data-level="4.1.1" data-path="sec-mnist.html"><a href="sec-mnist.html#how-committees-vote"><i class="fa fa-check"></i><b>4.1.1</b> How committees vote</a></li>
</ul></li>
</ul></li>
<li class="chapter" data-level="5" data-path="the-phase-separation-binary-classifier-where-to-read-more-about-it.html"><a href="the-phase-separation-binary-classifier-where-to-read-more-about-it.html"><i class="fa fa-check"></i><b>5</b> The Phase Separation Binary Classifier: where to read more about it</a></li>
<li class="divider"></li>
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
<li><a href="https://sites.google.com/view/rafaelmonteiro-math/home" target="blank">Rafael Monteiro's website</a></li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">Binary classification as a phase separation process - a short tutorial</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<section class="normal" id="section-">
<div id="the-phase-separation-binary-classifier-where-to-read-more-about-it" class="section level1">
<h1><span class="header-section-number"> 5</span> The Phase Separation Binary Classifier: where to read more about it</h1>
<p>There are quite a few places that you can read more about the Phase Separation Binary Classifier (PSBC), and also see further examples.</p>
<ul>
<li><p>I have posted a paper with all the mathematics behind the model. It is quite self contained. There is a preprint currently available on arXiv at <a href="https://arxiv.org/abs/2009.02467" class="uri">https://arxiv.org/abs/2009.02467</a>.</p></li>
<li><p>All the data is available at <span class="citation">(Monteiro <a href="#ref-Bin_phase_data" role="doc-biblioref">2020</a><a href="#ref-Bin_phase_data" role="doc-biblioref">b</a>)</span>.</p></li>
<li><p>There are many other examples of usage in the jupyter-notebooks:</p>
<ul>
<li><a href="https://github.com/rafael-a-monteiro-math/Binary_classification_phase_separation/blob/master/PSBC_Examples.ipynb">PSBC_Examples.ipynb</a> is a short tutorial that explains how to use the model in python.</li>
<li><a href="https://github.com/rafael-a-monteiro-math/Binary_classification_phase_separation/blob/master/PSBC_grid_search_notebook.ipynb">PSBC_grid_search_notebook.ipynb</a> shows you how to replicate the grid search in order to find good hyperaparamters.</li>
<li><a href="https://github.com/rafael-a-monteiro-math/Binary_classification_phase_separation/blob/master/PSBC_ensemble_learning_notebook.ipynb">PSBC_ensemble_learning_notebook.ipynb</a> explains how Ensemble learning was used in practice, besides showing how confusion matrices where created.</li>
<li><a href="https://github.com/rafael-a-monteiro-math/Binary_classification_phase_separation/blob/master/PSBC_training_notebook.ipynb">PSBC_training_notebook.ipynb</a> can be used to train the model once grid search has been carried out. Actually, if you have the output of grid search already in hands, you can run this nootebook without runing th grid search notebook.</li>
<li><a href="https://github.com/rafael-a-monteiro-math/Binary_classification_phase_separation/blob/master/PSBC_using_statistical_files.ipynb">PSBC_using_statistical_files.ipynb</a> shows how the data we anbalize in the paper ccan be retrieved from pickled files.</li>
</ul></li>
</ul>
<p>In order to keep things short I didn’t explain how callbacks are used in order to save validation data statistics. This was necessary because the keras/tensorflow API does not support this feature in “non-standard” models, like ours. If you want to see how this is done, please check both files
<a href="https://github.com/rafael-a-monteiro-math/Binary_classification_phase_separation/blob/master/MOTHER_PSBC/tf_PSBC_extra_libs_for_training_and_grid_search.py">tf_PSBC_extra_libs_for_training_and_grid_search.py</a> and <a href="https://github.com/rafael-a-monteiro-math/Binary_classification_phase_separation/blob/master/MOTHER_PSBC/tfversion_binary_phase_separation.py">tfversion_binary_phase_separation.py</a> at <span class="citation">(Monteiro <a href="#ref-Bin_phase_github" role="doc-biblioref">2020</a><a href="#ref-Bin_phase_github" role="doc-biblioref">a</a>)</span>.</p>
<ul>
<li>If you want to have access to the trainable examples I used, and to the computational statistics, you can either download the files <a href="https://zenodo.org/record/5525794/files/PSBC_BCs.tar.gz?download=1">PSBC_BCs.tar.gz, about 11Mn</a> for the tests regards different boundary conditions, and <a href="https://zenodo.org/record/5525794/files/PSBC_classifier_PCA.tar.gz?download=1">PSBC_classifier_PCA.tar.gz, about 2 Mb</a> at the companion <a href="https://doi.org/10.5281/zenodo.4005130"> data repository</a> to this project at Zenodo.<br />
</li>
<li>In this Github you will also find a manual named <a href="https://github.com/rafael-a-monteiro-math/Binary_classification_phase_separation/blob/master/README_v2.pdf">README_v2.pdf</a> to the data in the repository.</li>
</ul>
</div>
<h3>References</h3>
<div id="refs" class="references">
<div id="ref-Bin_phase_github">
<p>Monteiro, Rafael. 2020a. “Source Code for the Paper ‘Binary Classification as a Phase Separation Process’.” <em>GitHub Repository</em>. <a href="https://github.com/rafael-a-monteiro-math/Binary_classification_phase_separation">https://github.com/rafael-a-monteiro-math/Binary_classification_phase_separation</a>; GitHub.</p>
</div>
<div id="ref-Bin_phase_data">
<p>Monteiro, Rafael. 2020b. “Binary Classification as a Phase Separation Process (data repository).” Zenodo. <a href="https://doi.org/10.5281/zenodo.5525794">https://doi.org/10.5281/zenodo.5525794</a>.</p>
</div>
</div>
</section>
</div>
</div>
</div>
<a href="sec-mnist.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page"><i class="fa fa-angle-left"></i></a>
</div>
</div>
<script src="libs/gitbook-2.6.7/js/app.min.js"></script>
<script src="libs/gitbook-2.6.7/js/lunr.js"></script>
<script src="libs/gitbook-2.6.7/js/clipboard.min.js"></script>
<script src="libs/gitbook-2.6.7/js/plugin-search.js"></script>
<script src="libs/gitbook-2.6.7/js/plugin-sharing.js"></script>
<script src="libs/gitbook-2.6.7/js/plugin-fontsettings.js"></script>
<script src="libs/gitbook-2.6.7/js/plugin-bookdown.js"></script>
<script src="libs/gitbook-2.6.7/js/jquery.highlight.js"></script>
<script src="libs/gitbook-2.6.7/js/plugin-clipboard.js"></script>
<script>
gitbook.require(["gitbook"], function(gitbook) {
gitbook.start({
"sharing": {
"github": false,
"facebook": true,
"twitter": true,
"linkedin": false,
"weibo": false,
"instapaper": false,
"vk": false,
"all": ["facebook", "twitter", "linkedin", "weibo", "instapaper"]
},
"fontsettings": {
"theme": "white",
"family": "sans",
"size": 2
},
"edit": {
"link": null,
"text": null
},
"history": {
"link": null,
"text": null
},
"view": {
"link": null,
"text": null
},
"download": ["Website.pdf"],
"toc": {
"collapse": "subsection"
}
});
});
</script>
</body>
</html>