diff --git a/doc/pub/LogReg/html/._LogReg-bs000.html b/doc/pub/LogReg/html/._LogReg-bs000.html index 98bc7256f..91034fec6 100644 --- a/doc/pub/LogReg/html/._LogReg-bs000.html +++ b/doc/pub/LogReg/html/._LogReg-bs000.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -150,7 +152,7 @@ MathJax.Hub.Config({
    [2] Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University

    -

    Sep 22, 2019

    +

    Oct 9, 2019


    @@ -167,7 +169,7 @@ MathJax.Hub.Config({

  • 9
  • 10
  • ...
  • -
  • 18
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/._LogReg-bs001.html b/doc/pub/LogReg/html/._LogReg-bs001.html index 58b93b8d2..675312c5f 100644 --- a/doc/pub/LogReg/html/._LogReg-bs001.html +++ b/doc/pub/LogReg/html/._LogReg-bs001.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -184,7 +186,7 @@ failure etc.
  • 10
  • 11
  • ...
  • -
  • 18
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/._LogReg-bs002.html b/doc/pub/LogReg/html/._LogReg-bs002.html index 0bc75f870..e6c577b33 100644 --- a/doc/pub/LogReg/html/._LogReg-bs002.html +++ b/doc/pub/LogReg/html/._LogReg-bs002.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -167,7 +169,7 @@ models, as we will see later.
  • 11
  • 12
  • ...
  • -
  • 18
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/._LogReg-bs003.html b/doc/pub/LogReg/html/._LogReg-bs003.html index 2714bfa30..c5d9ed119 100644 --- a/doc/pub/LogReg/html/._LogReg-bs003.html +++ b/doc/pub/LogReg/html/._LogReg-bs003.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -174,7 +176,7 @@ $$
  • 12
  • 13
  • ...
  • -
  • 18
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/._LogReg-bs004.html b/doc/pub/LogReg/html/._LogReg-bs004.html index 5d032c500..47474cd4d 100644 --- a/doc/pub/LogReg/html/._LogReg-bs004.html +++ b/doc/pub/LogReg/html/._LogReg-bs004.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -172,7 +174,7 @@ where \( \hat{y} \) is a vector representing the possible outcomes, \( \hat{X} \
  • 13
  • 14
  • ...
  • -
  • 18
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/._LogReg-bs005.html b/doc/pub/LogReg/html/._LogReg-bs005.html index d4f16054c..c948727b5 100644 --- a/doc/pub/LogReg/html/._LogReg-bs005.html +++ b/doc/pub/LogReg/html/._LogReg-bs005.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -171,7 +173,7 @@ the probability of a given category. This leads us to the logistic function.
  • 14
  • 15
  • ...
  • -
  • 18
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/._LogReg-bs006.html b/doc/pub/LogReg/html/._LogReg-bs006.html index 0f07a06be..c96a03492 100644 --- a/doc/pub/LogReg/html/._LogReg-bs006.html +++ b/doc/pub/LogReg/html/._LogReg-bs006.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -172,7 +174,7 @@ Note that \( 1-p(t)= p(-t) \).
  • 15
  • 16
  • ...
  • -
  • 18
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/._LogReg-bs007.html b/doc/pub/LogReg/html/._LogReg-bs007.html index a5a0c0670..4dddc8c43 100644 --- a/doc/pub/LogReg/html/._LogReg-bs007.html +++ b/doc/pub/LogReg/html/._LogReg-bs007.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -217,7 +219,7 @@ plt.show()
  • 16
  • 17
  • ...
  • -
  • 18
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/._LogReg-bs008.html b/doc/pub/LogReg/html/._LogReg-bs008.html index 00270e6f9..ee946a1da 100644 --- a/doc/pub/LogReg/html/._LogReg-bs008.html +++ b/doc/pub/LogReg/html/._LogReg-bs008.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -173,6 +175,8 @@ $$
  • 16
  • 17
  • 18
  • +
  • ...
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/._LogReg-bs009.html b/doc/pub/LogReg/html/._LogReg-bs009.html index f0d118a07..17e64a71b 100644 --- a/doc/pub/LogReg/html/._LogReg-bs009.html +++ b/doc/pub/LogReg/html/._LogReg-bs009.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -174,6 +176,7 @@ $$
  • 16
  • 17
  • 18
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/._LogReg-bs010.html b/doc/pub/LogReg/html/._LogReg-bs010.html index 8d1a50a31..283f54f0a 100644 --- a/doc/pub/LogReg/html/._LogReg-bs010.html +++ b/doc/pub/LogReg/html/._LogReg-bs010.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -172,6 +174,7 @@ in practice we often supplement the cross-entropy with additional regularization
  • 16
  • 17
  • 18
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/._LogReg-bs011.html b/doc/pub/LogReg/html/._LogReg-bs011.html index 6dfcd87a3..445ffe058 100644 --- a/doc/pub/LogReg/html/._LogReg-bs011.html +++ b/doc/pub/LogReg/html/._LogReg-bs011.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -172,6 +174,7 @@ $$
  • 16
  • 17
  • 18
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/._LogReg-bs012.html b/doc/pub/LogReg/html/._LogReg-bs012.html index 3c9538e22..79af9605f 100644 --- a/doc/pub/LogReg/html/._LogReg-bs012.html +++ b/doc/pub/LogReg/html/._LogReg-bs012.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -172,6 +174,7 @@ $$
  • 16
  • 17
  • 18
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/._LogReg-bs013.html b/doc/pub/LogReg/html/._LogReg-bs013.html index 6a446328c..2db41aa30 100644 --- a/doc/pub/LogReg/html/._LogReg-bs013.html +++ b/doc/pub/LogReg/html/._LogReg-bs013.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -164,6 +166,7 @@ $$
  • 16
  • 17
  • 18
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/._LogReg-bs014.html b/doc/pub/LogReg/html/._LogReg-bs014.html index 373706eb6..4c86df9a3 100644 --- a/doc/pub/LogReg/html/._LogReg-bs014.html +++ b/doc/pub/LogReg/html/._LogReg-bs014.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -175,6 +177,7 @@ and the model is specified in term of \( K-1 \) so-called log-odds or
  • 16
  • 17
  • 18
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/._LogReg-bs015.html b/doc/pub/LogReg/html/._LogReg-bs015.html index 7b3445bc1..f5022e2bb 100644 --- a/doc/pub/LogReg/html/._LogReg-bs015.html +++ b/doc/pub/LogReg/html/._LogReg-bs015.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -186,6 +188,7 @@ methods.
  • 16
  • 17
  • 18
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/._LogReg-bs016.html b/doc/pub/LogReg/html/._LogReg-bs016.html index f2fe8db8f..bd33a73b8 100644 --- a/doc/pub/LogReg/html/._LogReg-bs016.html +++ b/doc/pub/LogReg/html/._LogReg-bs016.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -197,6 +199,7 @@ MathJax.Hub.Config({
  • 16
  • 17
  • 18
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/._LogReg-bs017.html b/doc/pub/LogReg/html/._LogReg-bs017.html index 310bf9492..c65a62404 100644 --- a/doc/pub/LogReg/html/._LogReg-bs017.html +++ b/doc/pub/LogReg/html/._LogReg-bs017.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -132,7 +134,8 @@ MathJax.Hub.Config({

    The Credit Card example

    -Here we use the the credit card data. More text to come. +Here we use the the credit card data. +The data are from an extensive database from Taiwan and include more than ten predictors. More text and clean up of code will be added.

    @@ -338,7 +341,6 @@ plt.plot(x, best) plt.show()

    -

    diff --git a/doc/pub/LogReg/html/._LogReg-bs018.html b/doc/pub/LogReg/html/._LogReg-bs018.html index 7c367356c..035c9ef3a 100644 --- a/doc/pub/LogReg/html/._LogReg-bs018.html +++ b/doc/pub/LogReg/html/._LogReg-bs018.html @@ -6,6 +6,7 @@ Automatically generated HTML file from DocOnce source + Data Analysis and Machine Learning: Logistic Regression @@ -46,26 +47,22 @@ Automatically generated HTML file from DocOnce source ('Linear classifier', 2, None, '___sec3'), ('Some selected properties', 2, None, '___sec4'), ('The logistic function', 2, None, '___sec5'), - ('Two parameters', 2, None, '___sec6'), - ('Maximum likelihood', 2, None, '___sec7'), - ('The cost function rewritten', 2, None, '___sec8'), - ('Minimizing the cross entropy', 2, None, '___sec9'), - ('A more compact expression', 2, None, '___sec10'), - ('Extending to more predictors', 2, None, '___sec11'), - ('Including more classes', 2, None, '___sec12'), - ('The Softmax function', 2, None, '___sec13'), - ('A _scikit-learn_ example', 2, None, '___sec14'), - ('A simple classification problem', 2, None, '___sec15'), - ('The two-dimensional Ising model, Predicting phase transition ' - 'of the two-dimensional Ising model', + ('Examples of likelihood functions used in logistic regression ' + 'and nueral networks', 2, None, - '___sec16'), - ('Reading in the data', 2, None, '___sec17'), - ('Logistic regression', 2, None, '___sec18'), - ('Exploring the logistic regression', 2, None, '___sec19'), - ('Accuracy of a classification model', 2, None, '___sec20'), - ('Analyzing the results', 2, None, '___sec21')]} + '___sec6'), + ('Two parameters', 2, None, '___sec7'), + ('Maximum likelihood', 2, None, '___sec8'), + ('The cost function rewritten', 2, None, '___sec9'), + ('Minimizing the cross entropy', 2, None, '___sec10'), + ('A more compact expression', 2, None, '___sec11'), + ('Extending to more predictors', 2, None, '___sec12'), + ('Including more classes', 2, None, '___sec13'), + ('More classes', 2, None, '___sec14'), + ('A simple classification problem', 2, None, '___sec15'), + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -109,22 +106,18 @@ MathJax.Hub.Config({
  • Linear classifier
  • Some selected properties
  • The logistic function
  • -
  • Two parameters
  • -
  • Maximum likelihood
  • -
  • The cost function rewritten
  • -
  • Minimizing the cross entropy
  • -
  • A more compact expression
  • -
  • Extending to more predictors
  • -
  • Including more classes
  • -
  • The Softmax function
  • -
  • A scikit-learn example
  • +
  • Examples of likelihood functions used in logistic regression and nueral networks
  • +
  • Two parameters
  • +
  • Maximum likelihood
  • +
  • The cost function rewritten
  • +
  • Minimizing the cross entropy
  • +
  • A more compact expression
  • +
  • Extending to more predictors
  • +
  • Including more classes
  • +
  • More classes
  • A simple classification problem
  • -
  • The two-dimensional Ising model, Predicting phase transition of the two-dimensional Ising model
  • -
  • Reading in the data
  • -
  • Logistic regression
  • -
  • Exploring the logistic regression
  • -
  • Accuracy of a classification model
  • -
  • Analyzing the results
  • +
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -140,51 +133,8 @@ MathJax.Hub.Config({ -

    Reading in the data

    +

    Analysis of the credi card example

    -

    -Using the data from Mehta et al. (specifically the two datasets named Ising2DFM_reSample_L40_T=All.pkl and Ising2DFM_reSample_L40_T=All_labels.pkl) we have to unpack the data into numpy arrays. - -

    - - -

    filenames = glob.glob(os.path.join("..", "dat", "*"))
    -label_filename = list(filter(lambda x: "label" in x, filenames))[0]
    -dat_filename = list(filter(lambda x: "label" not in x, filenames))[0]
    -
    -# Read in the labels
    -with open(label_filename, "rb") as f:
    -    labels = pickle.load(f)
    -
    -# Read in the corresponding configurations
    -with open(dat_filename, "rb") as f:
    -    data = np.unpackbits(pickle.load(f)).reshape(-1, 1600).astype("int")
    -
    -# Set spin-down to -1
    -data[data == 0] = -1
    -
    -

    -This dataset consists of \( 10000 \) samples, i.e., \( 10000 \) spin -configurations with \( 40 \times 40 \) spins each, for \( 16 \) temperatures -between \( 0.25 \) to \( 4.0 \). Next we create a train/test-split and keep -the data in the critical phase as a separate dataset for -extrapolation-testing. - -

    - - -

    # Set up slices of the dataset
    -ordered = slice(0, 70000)
    -critical = slice(70000, 100000)
    -disordered = slice(100000, 160000)
    -
    -X_train, X_test, y_train, y_test = skms.train_test_split(
    -    np.concatenate((data[ordered], data[disordered])),
    -    np.concatenate((labels[ordered], labels[disordered])),
    -    test_size=0.95
    -)
    -
    -

    diff --git a/doc/pub/LogReg/html/LogReg-bs.html b/doc/pub/LogReg/html/LogReg-bs.html index 98bc7256f..91034fec6 100644 --- a/doc/pub/LogReg/html/LogReg-bs.html +++ b/doc/pub/LogReg/html/LogReg-bs.html @@ -61,7 +61,8 @@ Automatically generated HTML file from DocOnce source ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -116,6 +117,7 @@ MathJax.Hub.Config({
  • More classes
  • A simple classification problem
  • The Credit Card example
  • +
  • Analysis of the credi card example
  • @@ -150,7 +152,7 @@ MathJax.Hub.Config({
    [2] Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University

    -

    Sep 22, 2019

    +

    Oct 9, 2019


    @@ -167,7 +169,7 @@ MathJax.Hub.Config({

  • 9
  • 10
  • ...
  • -
  • 18
  • +
  • 19
  • »
  • diff --git a/doc/pub/LogReg/html/LogReg-reveal.html b/doc/pub/LogReg/html/LogReg-reveal.html index 0767d69e9..6c7b64008 100644 --- a/doc/pub/LogReg/html/LogReg-reveal.html +++ b/doc/pub/LogReg/html/LogReg-reveal.html @@ -148,7 +148,7 @@ MathJax.Hub.Config({
    [2] Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University

     
    -

    Sep 22, 2019

    +

    Oct 9, 2019


    @@ -667,7 +667,8 @@ methods.

    The Credit Card example

    -Here we use the the credit card data. More text to come. +Here we use the the credit card data. +The data are from an extensive database from Taiwan and include more than ten predictors. More text and clean up of code will be added.

    @@ -875,6 +876,11 @@ plt.show()

    +
    +

    Analysis of the credi card example

    +
    + + diff --git a/doc/pub/LogReg/html/LogReg-solarized.html b/doc/pub/LogReg/html/LogReg-solarized.html index a55d67f8e..ba2b80950 100644 --- a/doc/pub/LogReg/html/LogReg-solarized.html +++ b/doc/pub/LogReg/html/LogReg-solarized.html @@ -55,7 +55,8 @@ div { text-align: justify; text-justify: inter-word; } ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -97,7 +98,7 @@ MathJax.Hub.Config({
    [2] Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University

    -

    Sep 22, 2019

    +

    Oct 9, 2019


    @@ -568,7 +569,8 @@ methods.









    The Credit Card example

    -Here we use the the credit card data. More text to come. +Here we use the the credit card data. +The data are from an extensive database from Taiwan and include more than ten predictors. More text and clean up of code will be added.

    @@ -774,6 +776,9 @@ plt.plot(x, best) plt.show()

    +









    + +

    Analysis of the credi card example

    diff --git a/doc/pub/LogReg/html/LogReg.html b/doc/pub/LogReg/html/LogReg.html index c01f8f756..dd6403806 100644 --- a/doc/pub/LogReg/html/LogReg.html +++ b/doc/pub/LogReg/html/LogReg.html @@ -60,7 +60,8 @@ div { text-align: justify; text-justify: inter-word; } ('Including more classes', 2, None, '___sec13'), ('More classes', 2, None, '___sec14'), ('A simple classification problem', 2, None, '___sec15'), - ('The Credit Card example', 2, None, '___sec16')]} + ('The Credit Card example', 2, None, '___sec16'), + ('Analysis of the credi card example', 2, None, '___sec17')]} end of tocinfo --> @@ -102,7 +103,7 @@ MathJax.Hub.Config({
    [2] Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University

    -

    Sep 22, 2019

    +

    Oct 9, 2019


    @@ -573,7 +574,8 @@ methods.









    The Credit Card example

    -Here we use the the credit card data. More text to come. +Here we use the the credit card data. +The data are from an extensive database from Taiwan and include more than ten predictors. More text and clean up of code will be added.

    @@ -779,6 +781,9 @@ plt.plot(x, best) plt.show()

    +









    + +

    Analysis of the credi card example

    diff --git a/doc/pub/LogReg/ipynb/LogReg.ipynb b/doc/pub/LogReg/ipynb/LogReg.ipynb index 3712682c6..cb31cc32e 100644 --- a/doc/pub/LogReg/ipynb/LogReg.ipynb +++ b/doc/pub/LogReg/ipynb/LogReg.ipynb @@ -10,7 +10,7 @@ " \n", "**Morten Hjorth-Jensen**, Department of Physics, University of Oslo and Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University\n", "\n", - "Date: **Sep 22, 2019**\n", + "Date: **Oct 9, 2019**\n", "\n", "Copyright 1999-2019, Morten Hjorth-Jensen. Released under CC Attribution-NonCommercial 4.0 license\n", "\n", @@ -668,7 +668,8 @@ "metadata": {}, "source": [ "## The Credit Card example\n", - "Here we use the the [credit card data](https://archive.ics.uci.edu/ml/datasets/default+of+credit+card+clients). More text to come." + "Here we use the the [credit card data](https://archive.ics.uci.edu/ml/datasets/default+of+credit+card+clients). \n", + "The data are from an extensive database from Taiwan and include more than ten predictors. More text and clean up of code will be added." ] }, { @@ -886,6 +887,13 @@ "\n", "plt.show()" ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Analysis of the credi card example" + ] } ], "metadata": {}, diff --git a/doc/pub/LogReg/ipynb/ipynb-LogReg-src.tar.gz b/doc/pub/LogReg/ipynb/ipynb-LogReg-src.tar.gz index 792fd0b51..120b7e1c0 100644 Binary files a/doc/pub/LogReg/ipynb/ipynb-LogReg-src.tar.gz and b/doc/pub/LogReg/ipynb/ipynb-LogReg-src.tar.gz differ diff --git a/doc/pub/LogReg/pdf/LogReg-minted.pdf b/doc/pub/LogReg/pdf/LogReg-minted.pdf index a952997cc..75e86bb0b 100644 Binary files a/doc/pub/LogReg/pdf/LogReg-minted.pdf and b/doc/pub/LogReg/pdf/LogReg-minted.pdf differ diff --git a/doc/src/LogisticRegression/LogReg.do.txt b/doc/src/LogisticRegression/LogReg.do.txt index b05adb8ee..972550f74 100644 --- a/doc/src/LogisticRegression/LogReg.do.txt +++ b/doc/src/LogisticRegression/LogReg.do.txt @@ -451,7 +451,7 @@ if __name__ == "__main__": !split ===== The Credit Card example ===== Here we use the the "credit card data":"https://archive.ics.uci.edu/ml/datasets/default+of+credit+card+clients". -The data are from an extensive database from Taiwan and include more than ten predictors. +The data are from an extensive database from Taiwan and include more than ten predictors. More text and clean up of code will be added. !bc pycod import pandas as pd