diff --git a/doc/pub/week34/html/._week34-bs000.html b/doc/pub/week34/html/._week34-bs000.html index fbff67b7c..6bc7a64d6 100644 --- a/doc/pub/week34/html/._week34-bs000.html +++ b/doc/pub/week34/html/._week34-bs000.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs001.html b/doc/pub/week34/html/._week34-bs001.html index 7c00cf113..965ab77f6 100644 --- a/doc/pub/week34/html/._week34-bs001.html +++ b/doc/pub/week34/html/._week34-bs001.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs002.html b/doc/pub/week34/html/._week34-bs002.html index 61c1210f5..689de551e 100644 --- a/doc/pub/week34/html/._week34-bs002.html +++ b/doc/pub/week34/html/._week34-bs002.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs003.html b/doc/pub/week34/html/._week34-bs003.html index 437b49f08..61b665c90 100644 --- a/doc/pub/week34/html/._week34-bs003.html +++ b/doc/pub/week34/html/._week34-bs003.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs004.html b/doc/pub/week34/html/._week34-bs004.html index eaa9ecf4e..7de67066b 100644 --- a/doc/pub/week34/html/._week34-bs004.html +++ b/doc/pub/week34/html/._week34-bs004.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • @@ -354,7 +351,7 @@ MathJax.Hub.Config({

    diff --git a/doc/pub/week34/html/._week34-bs005.html b/doc/pub/week34/html/._week34-bs005.html index 4755be328..6446743b6 100644 --- a/doc/pub/week34/html/._week34-bs005.html +++ b/doc/pub/week34/html/._week34-bs005.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({

  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs006.html b/doc/pub/week34/html/._week34-bs006.html index 80ba7517d..c702785fd 100644 --- a/doc/pub/week34/html/._week34-bs006.html +++ b/doc/pub/week34/html/._week34-bs006.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs007.html b/doc/pub/week34/html/._week34-bs007.html index 63e5a1bc5..e9a5de19e 100644 --- a/doc/pub/week34/html/._week34-bs007.html +++ b/doc/pub/week34/html/._week34-bs007.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs008.html b/doc/pub/week34/html/._week34-bs008.html index 0c6980e28..d98820aef 100644 --- a/doc/pub/week34/html/._week34-bs008.html +++ b/doc/pub/week34/html/._week34-bs008.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs009.html b/doc/pub/week34/html/._week34-bs009.html index bc10ec8e5..ba17a46ac 100644 --- a/doc/pub/week34/html/._week34-bs009.html +++ b/doc/pub/week34/html/._week34-bs009.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs010.html b/doc/pub/week34/html/._week34-bs010.html index 37a8d1796..018caf9f4 100644 --- a/doc/pub/week34/html/._week34-bs010.html +++ b/doc/pub/week34/html/._week34-bs010.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs011.html b/doc/pub/week34/html/._week34-bs011.html index c48ee363c..2b252618e 100644 --- a/doc/pub/week34/html/._week34-bs011.html +++ b/doc/pub/week34/html/._week34-bs011.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs012.html b/doc/pub/week34/html/._week34-bs012.html index deb9ea1c8..65eaf7e18 100644 --- a/doc/pub/week34/html/._week34-bs012.html +++ b/doc/pub/week34/html/._week34-bs012.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs013.html b/doc/pub/week34/html/._week34-bs013.html index 4f07d6956..c1ec6ed51 100644 --- a/doc/pub/week34/html/._week34-bs013.html +++ b/doc/pub/week34/html/._week34-bs013.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs014.html b/doc/pub/week34/html/._week34-bs014.html index 97745a244..5f0a176fc 100644 --- a/doc/pub/week34/html/._week34-bs014.html +++ b/doc/pub/week34/html/._week34-bs014.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs015.html b/doc/pub/week34/html/._week34-bs015.html index 3fcba3109..49cc0fb36 100644 --- a/doc/pub/week34/html/._week34-bs015.html +++ b/doc/pub/week34/html/._week34-bs015.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs016.html b/doc/pub/week34/html/._week34-bs016.html index 1d3a82f42..89e3ce21a 100644 --- a/doc/pub/week34/html/._week34-bs016.html +++ b/doc/pub/week34/html/._week34-bs016.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs017.html b/doc/pub/week34/html/._week34-bs017.html index 301baf2a2..b3fa96d84 100644 --- a/doc/pub/week34/html/._week34-bs017.html +++ b/doc/pub/week34/html/._week34-bs017.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs018.html b/doc/pub/week34/html/._week34-bs018.html index 2172e5682..32e563550 100644 --- a/doc/pub/week34/html/._week34-bs018.html +++ b/doc/pub/week34/html/._week34-bs018.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs019.html b/doc/pub/week34/html/._week34-bs019.html index 623af284a..0a00aa903 100644 --- a/doc/pub/week34/html/._week34-bs019.html +++ b/doc/pub/week34/html/._week34-bs019.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs020.html b/doc/pub/week34/html/._week34-bs020.html index bee85b1c9..56a1cb98b 100644 --- a/doc/pub/week34/html/._week34-bs020.html +++ b/doc/pub/week34/html/._week34-bs020.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs021.html b/doc/pub/week34/html/._week34-bs021.html index 45c9879ae..387572799 100644 --- a/doc/pub/week34/html/._week34-bs021.html +++ b/doc/pub/week34/html/._week34-bs021.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs022.html b/doc/pub/week34/html/._week34-bs022.html index 91cb49e18..8dc718325 100644 --- a/doc/pub/week34/html/._week34-bs022.html +++ b/doc/pub/week34/html/._week34-bs022.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs023.html b/doc/pub/week34/html/._week34-bs023.html index 880dd92a1..d408efbb0 100644 --- a/doc/pub/week34/html/._week34-bs023.html +++ b/doc/pub/week34/html/._week34-bs023.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs024.html b/doc/pub/week34/html/._week34-bs024.html index b2c6960a6..e4b286830 100644 --- a/doc/pub/week34/html/._week34-bs024.html +++ b/doc/pub/week34/html/._week34-bs024.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs025.html b/doc/pub/week34/html/._week34-bs025.html index f57419a51..043ddb17f 100644 --- a/doc/pub/week34/html/._week34-bs025.html +++ b/doc/pub/week34/html/._week34-bs025.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs026.html b/doc/pub/week34/html/._week34-bs026.html index f0a41edbe..cae0e501a 100644 --- a/doc/pub/week34/html/._week34-bs026.html +++ b/doc/pub/week34/html/._week34-bs026.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs027.html b/doc/pub/week34/html/._week34-bs027.html index 6a5aee595..40b2b4ce8 100644 --- a/doc/pub/week34/html/._week34-bs027.html +++ b/doc/pub/week34/html/._week34-bs027.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs028.html b/doc/pub/week34/html/._week34-bs028.html index 9871d1443..67e7c182f 100644 --- a/doc/pub/week34/html/._week34-bs028.html +++ b/doc/pub/week34/html/._week34-bs028.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs029.html b/doc/pub/week34/html/._week34-bs029.html index 52160f612..cf4cf6ec8 100644 --- a/doc/pub/week34/html/._week34-bs029.html +++ b/doc/pub/week34/html/._week34-bs029.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs030.html b/doc/pub/week34/html/._week34-bs030.html index f1692bfb0..54e567a80 100644 --- a/doc/pub/week34/html/._week34-bs030.html +++ b/doc/pub/week34/html/._week34-bs030.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs031.html b/doc/pub/week34/html/._week34-bs031.html index 2d7ce1e45..8bb74ae4e 100644 --- a/doc/pub/week34/html/._week34-bs031.html +++ b/doc/pub/week34/html/._week34-bs031.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs032.html b/doc/pub/week34/html/._week34-bs032.html index 96b4c4ef9..a78ff0e7c 100644 --- a/doc/pub/week34/html/._week34-bs032.html +++ b/doc/pub/week34/html/._week34-bs032.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs033.html b/doc/pub/week34/html/._week34-bs033.html index 9bc4d35ec..42840614c 100644 --- a/doc/pub/week34/html/._week34-bs033.html +++ b/doc/pub/week34/html/._week34-bs033.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs034.html b/doc/pub/week34/html/._week34-bs034.html index 225489fa9..ef98baa17 100644 --- a/doc/pub/week34/html/._week34-bs034.html +++ b/doc/pub/week34/html/._week34-bs034.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs035.html b/doc/pub/week34/html/._week34-bs035.html index 5e83cde07..9c81817a6 100644 --- a/doc/pub/week34/html/._week34-bs035.html +++ b/doc/pub/week34/html/._week34-bs035.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs036.html b/doc/pub/week34/html/._week34-bs036.html index 4cc6ca9b8..b1eb8c7d1 100644 --- a/doc/pub/week34/html/._week34-bs036.html +++ b/doc/pub/week34/html/._week34-bs036.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs037.html b/doc/pub/week34/html/._week34-bs037.html index 1002c0379..964e2bf63 100644 --- a/doc/pub/week34/html/._week34-bs037.html +++ b/doc/pub/week34/html/._week34-bs037.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • @@ -350,811 +347,9 @@ MathJax.Hub.Config({

     

     

     

    -

    Simple linear regression model using scikit-learn

    +

    Pandas AI

    -

    We start with perhaps our simplest possible example, using Scikit-Learn to perform linear regression analysis on a data set produced by us.

    - -

    What follows is a simple Python code where we have defined a function -\( y \) in terms of the variable \( x \). Both are defined as vectors with \( 100 \) entries. -The numbers in the vector \( \boldsymbol{x} \) are given -by random numbers generated with a uniform distribution with entries -\( x_i \in [0,1] \) (more about probability distribution functions -later). These values are then used to define a function \( y(x) \) -(tabulated again as a vector) with a linear dependence on \( x \) plus a -random noise added via the normal distribution. -

    - -

    The Numpy functions are imported used the import numpy as np -statement and the random number generator for the uniform distribution -is called using the function np.random.rand(), where we specificy -that we want \( 100 \) random variables. Using Numpy we define -automatically an array with the specified number of elements, \( 100 \) in -our case. With the Numpy function randn() we can compute random -numbers with the normal distribution (mean value \( \mu \) equal to zero and -variance \( \sigma^2 \) set to one) and produce the values of \( y \) assuming a linear -dependence as function of \( x \) -

    - -$$ -y = 2x+N(0,1), -$$ - -

    where \( N(0,1) \) represents random numbers generated by the normal -distribution. From Scikit-Learn we import then the -LinearRegression functionality and make a prediction \( \tilde{y} = -\alpha + \beta x \) using the function fit(x,y). We call the set of -data \( (\boldsymbol{x},\boldsymbol{y}) \) for our training data. The Python package -scikit-learn has also a functionality which extracts the above -fitting parameters \( \alpha \) and \( \beta \) (see below). Later we will -distinguish between training data and test data. -

    - -

    For plotting we use the Python package -matplotlib which produces publication -quality figures. Feel free to explore the extensive -gallery of examples. In -this example we plot our original values of \( x \) and \( y \) as well as the -prediction ypredict (\( \tilde{y} \)), which attempts at fitting our -data with a straight line. -

    - -

    The Python code follows here.

    - - -
    -
    -
    -
    -
    -
    # Importing various packages
    -import numpy as np
    -import matplotlib.pyplot as plt
    -from sklearn.linear_model import LinearRegression
    -
    -x = np.random.rand(100,1)
    -y = 2*x+np.random.randn(100,1)
    -linreg = LinearRegression()
    -linreg.fit(x,y)
    -xnew = np.array([[0],[1]])
    -ypredict = linreg.predict(xnew)
    -
    -plt.plot(xnew, ypredict, "r-")
    -plt.plot(x, y ,'ro')
    -plt.axis([0,1.0,0, 5.0])
    -plt.xlabel(r'$x$')
    -plt.ylabel(r'$y$')
    -plt.title(r'Simple Linear Regression')
    -plt.show()
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -

    This example serves several aims. It allows us to demonstrate several -aspects of data analysis and later machine learning algorithms. The -immediate visualization shows that our linear fit is not -impressive. It goes through the data points, but there are many -outliers which are not reproduced by our linear regression. We could -now play around with this small program and change for example the -factor in front of \( x \) and the normal distribution. Try to change the -function \( y \) to -

    - -$$ -y = 10x+0.01 \times N(0,1), -$$ - -

    where \( x \) is defined as before. Does the fit look better? Indeed, by -reducing the role of the noise given by the normal distribution we see immediately that -our linear prediction seemingly reproduces better the training -set. However, this testing 'by the eye' is obviouly not satisfactory in the -long run. Here we have only defined the training data and our model, and -have not discussed a more rigorous approach to the cost function. -

    - -

    We need more rigorous criteria in defining whether we have succeeded or -not in modeling our training data. You will be surprised to see that -many scientists seldomly venture beyond this 'by the eye' approach. A -standard approach for the cost function is the so-called \( \chi^2 \) -function (a variant of the mean-squared error (MSE)) -

    - -$$ \chi^2 = \frac{1}{n} -\sum_{i=0}^{n-1}\frac{(y_i-\tilde{y}_i)^2}{\sigma_i^2}, -$$ - -

    where \( \sigma_i^2 \) is the variance (to be defined later) of the entry -\( y_i \). We may not know the explicit value of \( \sigma_i^2 \), it serves -however the aim of scaling the equations and make the cost function -dimensionless. -

    - -

    Minimizing the cost function is a central aspect of -our discussions to come. Finding its minima as function of the model -parameters (\( \alpha \) and \( \beta \) in our case) will be a recurring -theme in these series of lectures. Essentially all machine learning -algorithms we will discuss center around the minimization of the -chosen cost function. This depends in turn on our specific -model for describing the data, a typical situation in supervised -learning. Automatizing the search for the minima of the cost function is a -central ingredient in all algorithms. Typical methods which are -employed are various variants of gradient methods. These will be -discussed in more detail later. Again, you'll be surprised to hear that -many practitioners minimize the above function ''by the eye', popularly dubbed as -'chi by the eye'. That is, change a parameter and see (visually and numerically) that -the \( \chi^2 \) function becomes smaller. -

    - -

    There are many ways to define the cost function. A simpler approach is to look at the relative difference between the training data and the predicted data, that is we define -the relative error (why would we prefer the MSE instead of the relative error?) as -

    - -$$ -\epsilon_{\mathrm{relative}}= \frac{\vert \boldsymbol{y} -\boldsymbol{\tilde{y}}\vert}{\vert \boldsymbol{y}\vert}. -$$ - -

    The squared cost function results in an arithmetic mean-unbiased -estimator, and the absolute-value cost function results in a -median-unbiased estimator (in the one-dimensional case, and a -geometric median-unbiased estimator for the multi-dimensional -case). The squared cost function has the disadvantage that it has the tendency -to be dominated by outliers. -

    - -

    We can modify easily the above Python code and plot the relative error instead

    - - -
    -
    -
    -
    -
    -
    import numpy as np
    -import matplotlib.pyplot as plt
    -from sklearn.linear_model import LinearRegression
    -
    -x = np.random.rand(100,1)
    -y = 5*x+0.01*np.random.randn(100,1)
    -linreg = LinearRegression()
    -linreg.fit(x,y)
    -ypredict = linreg.predict(x)
    -
    -plt.plot(x, np.abs(ypredict-y)/abs(y), "ro")
    -plt.axis([0,1.0,0.0, 0.5])
    -plt.xlabel(r'$x$')
    -plt.ylabel(r'$\epsilon_{\mathrm{relative}}$')
    -plt.title(r'Relative error')
    -plt.show()
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -

    Depending on the parameter in front of the normal distribution, we may -have a small or larger relative error. Try to play around with -different training data sets and study (graphically) the value of the -relative error. -

    - -

    As mentioned above, Scikit-Learn has an impressive functionality. -We can for example extract the values of \( \alpha \) and \( \beta \) and -their error estimates, or the variance and standard deviation and many -other properties from the statistical data analysis. -

    - -

    Here we show an -example of the functionality of Scikit-Learn. -

    - - -
    -
    -
    -
    -
    -
    import numpy as np 
    -import matplotlib.pyplot as plt 
    -from sklearn.linear_model import LinearRegression 
    -from sklearn.metrics import mean_squared_error, r2_score, mean_squared_log_error, mean_absolute_error
    -
    -x = np.random.rand(100,1)
    -y = 2.0+ 5*x+0.5*np.random.randn(100,1)
    -linreg = LinearRegression()
    -linreg.fit(x,y)
    -ypredict = linreg.predict(x)
    -print('The intercept alpha: \n', linreg.intercept_)
    -print('Coefficient beta : \n', linreg.coef_)
    -# The mean squared error                               
    -print("Mean squared error: %.2f" % mean_squared_error(y, ypredict))
    -# Explained variance score: 1 is perfect prediction                                 
    -print('Variance score: %.2f' % r2_score(y, ypredict))
    -# Mean squared log error                                                        
    -print('Mean squared log error: %.2f' % mean_squared_log_error(y, ypredict) )
    -# Mean absolute error                                                           
    -print('Mean absolute error: %.2f' % mean_absolute_error(y, ypredict))
    -plt.plot(x, ypredict, "r-")
    -plt.plot(x, y ,'ro')
    -plt.axis([0.0,1.0,1.5, 7.0])
    -plt.xlabel(r'$x$')
    -plt.ylabel(r'$y$')
    -plt.title(r'Linear Regression fit ')
    -plt.show()
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -

    The function coef gives us the parameter \( \beta \) of our fit while intercept yields -\( \alpha \). Depending on the constant in front of the normal distribution, we get values near or far from \( \alpha =2 \) and \( \beta =5 \). Try to play around with different parameters in front of the normal distribution. The function meansquarederror gives us the mean square error, a risk metric corresponding to the expected value of the squared (quadratic) error or loss defined as -

    -$$ MSE(\boldsymbol{y},\boldsymbol{\tilde{y}}) = \frac{1}{n} -\sum_{i=0}^{n-1}(y_i-\tilde{y}_i)^2, -$$ - -

    The smaller the value, the better the fit. Ideally we would like to -have an MSE equal zero. The attentive reader has probably recognized -this function as being similar to the \( \chi^2 \) function defined above. -

    - -

    The r2score function computes \( R^2 \), the coefficient of -determination. It provides a measure of how well future samples are -likely to be predicted by the model. Best possible score is 1.0 and it -can be negative (because the model can be arbitrarily worse). A -constant model that always predicts the expected value of \( \boldsymbol{y} \), -disregarding the input features, would get a \( R^2 \) score of \( 0.0 \). -

    - -

    If \( \tilde{\boldsymbol{y}}_i \) is the predicted value of the \( i-th \) sample and \( y_i \) is the corresponding true value, then the score \( R^2 \) is defined as

    -$$ -R^2(\boldsymbol{y}, \tilde{\boldsymbol{y}}) = 1 - \frac{\sum_{i=0}^{n - 1} (y_i - \tilde{y}_i)^2}{\sum_{i=0}^{n - 1} (y_i - \bar{y})^2}, -$$ - -

    where we have defined the mean value of \( \boldsymbol{y} \) as

    -$$ -\bar{y} = \frac{1}{n} \sum_{i=0}^{n - 1} y_i. -$$ - -

    Another quantity taht we will meet again in our discussions of regression analysis is - the mean absolute error (MAE), a risk metric corresponding to the expected value of the absolute error loss or what we call the \( l1 \)-norm loss. In our discussion above we presented the relative error. -The MAE is defined as follows -

    -$$ -\text{MAE}(\boldsymbol{y}, \boldsymbol{\tilde{y}}) = \frac{1}{n} \sum_{i=0}^{n-1} \left| y_i - \tilde{y}_i \right|. -$$ - -

    We present the -squared logarithmic (quadratic) error -

    -$$ -\text{MSLE}(\boldsymbol{y}, \boldsymbol{\tilde{y}}) = \frac{1}{n} \sum_{i=0}^{n - 1} (\log_e (1 + y_i) - \log_e (1 + \tilde{y}_i) )^2, -$$ - -

    where \( \log_e (x) \) stands for the natural logarithm of \( x \). This error -estimate is best to use when targets having exponential growth, such -as population counts, average sales of a commodity over a span of -years etc. -

    - -

    Finally, another cost function is the Huber cost function used in robust regression.

    - -

    The rationale behind this possible cost function is its reduced -sensitivity to outliers in the data set. In our discussions on -dimensionality reduction and normalization of data we will meet other -ways of dealing with outliers. -

    - -

    The Huber cost function is defined as

    -$$ -H_{\delta}(\boldsymbol{a})=\left\{\begin{array}{cc}\frac{1}{2} \boldsymbol{a}^{2}& \text{for }|\boldsymbol{a}|\leq \delta\\ \delta (|\boldsymbol{a}|-\frac{1}{2}\delta ),&\text{otherwise}.\end{array}\right. -$$ - -

    Here \( \boldsymbol{a}=\boldsymbol{y} - \boldsymbol{\tilde{y}} \).

    - -

    We will discuss in more detail these and other functions in the -various lectures and lab sessions. -

    -

    To our real data: nuclear binding energies. Brief reminder on masses and binding energies

    - -

    Let us now dive into nuclear physics and remind ourselves briefly about some basic features about binding -energies. A basic quantity which can be measured for the ground -states of nuclei is the atomic mass \( M(N, Z) \) of the neutral atom with -atomic mass number \( A \) and charge \( Z \). The number of neutrons is \( N \). There are indeed several sophisticated experiments worldwide which allow us to measure this quantity to high precision (parts per million even). -

    - -

    Atomic masses are usually tabulated in terms of the mass excess defined by

    -$$ -\Delta M(N, Z) = M(N, Z) - uA, -$$ - -

    where \( u \) is the Atomic Mass Unit

    -$$ -u = M(^{12}\mathrm{C})/12 = 931.4940954(57) \hspace{0.1cm} \mathrm{MeV}/c^2. -$$ - -

    The nucleon masses are

    -$$ -m_p = 1.00727646693(9)u, -$$ - -

    and

    -$$ -m_n = 939.56536(8)\hspace{0.1cm} \mathrm{MeV}/c^2 = 1.0086649156(6)u. -$$ - -

    In the 2016 mass evaluation of by W.J.Huang, G.Audi, M.Wang, F.G.Kondev, S.Naimi and X.Xu -there are data on masses and decays of 3437 nuclei. -

    - -

    The nuclear binding energy is defined as the energy required to break -up a given nucleus into its constituent parts of \( N \) neutrons and \( Z \) -protons. In terms of the atomic masses \( M(N, Z) \) the binding energy is -defined by -

    - -$$ -BE(N, Z) = ZM_H c^2 + Nm_n c^2 - M(N, Z)c^2 , -$$ - -

    where \( M_H \) is the mass of the hydrogen atom and \( m_n \) is the mass of the neutron. -In terms of the mass excess the binding energy is given by -

    -$$ -BE(N, Z) = Z\Delta_H c^2 + N\Delta_n c^2 -\Delta(N, Z)c^2 , -$$ - -

    where \( \Delta_H c^2 = 7.2890 \) MeV and \( \Delta_n c^2 = 8.0713 \) MeV.

    - -

    A popular and physically intuitive model which can be used to parametrize -the experimental binding energies as function of \( A \), is the so-called -liquid drop model. The ansatz is based on the following expression -

    - -$$ -BE(N,Z) = a_1A-a_2A^{2/3}-a_3\frac{Z^2}{A^{1/3}}-a_4\frac{(N-Z)^2}{A}, -$$ - -

    where \( A \) stands for the number of nucleons and the $a_i$s are parameters which are determined by a fit -to the experimental data. -

    - -

    To arrive at the above expression we have assumed that we can make the following assumptions:

    - - -

    We could also add a so-called pairing term, which is a correction term that -arises from the tendency of proton pairs and neutron pairs to -occur. An even number of particles is more stable than an odd number. -

    -

    Organizing our data

    - -

    Let us start with reading and organizing our data. -We start with the compilation of masses and binding energies from 2016. -After having downloaded this file to our own computer, we are now ready to read the file and start structuring our data. -

    - -

    We start with preparing folders for storing our calculations and the data file over masses and binding energies. We import also various modules that we will find useful in order to present various Machine Learning methods. Here we focus mainly on the functionality of scikit-learn.

    - - -
    -
    -
    -
    -
    -
    # Common imports
    -import numpy as np
    -import pandas as pd
    -import matplotlib.pyplot as plt
    -import sklearn.linear_model as skl
    -from sklearn.model_selection import train_test_split
    -from sklearn.metrics import mean_squared_error, r2_score, mean_absolute_error
    -import os
    -
    -# Where to save the figures and data files
    -PROJECT_ROOT_DIR = "Results"
    -FIGURE_ID = "Results/FigureFiles"
    -DATA_ID = "DataFiles/"
    -
    -if not os.path.exists(PROJECT_ROOT_DIR):
    -    os.mkdir(PROJECT_ROOT_DIR)
    -
    -if not os.path.exists(FIGURE_ID):
    -    os.makedirs(FIGURE_ID)
    -
    -if not os.path.exists(DATA_ID):
    -    os.makedirs(DATA_ID)
    -
    -def image_path(fig_id):
    -    return os.path.join(FIGURE_ID, fig_id)
    -
    -def data_path(dat_id):
    -    return os.path.join(DATA_ID, dat_id)
    -
    -def save_fig(fig_id):
    -    plt.savefig(image_path(fig_id) + ".png", format='png')
    -
    -infile = open(data_path("MassEval2016.dat"),'r')
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -

    Before we proceed, we define also a function for making our plots. You can obviously avoid this and simply set up various matplotlib commands every time you need them. You may however find it convenient to collect all such commands in one function and simply call this function.

    - - -
    -
    -
    -
    -
    -
    from pylab import plt, mpl
    -plt.style.use('seaborn')
    -mpl.rcParams['font.family'] = 'serif'
    -
    -def MakePlot(x,y, styles, labels, axlabels):
    -    plt.figure(figsize=(10,6))
    -    for i in range(len(x)):
    -        plt.plot(x[i], y[i], styles[i], label = labels[i])
    -        plt.xlabel(axlabels[0])
    -        plt.ylabel(axlabels[1])
    -    plt.legend(loc=0)
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -

    Our next step is to read the data on experimental binding energies and -reorganize them as functions of the mass number \( A \), the number of -protons \( Z \) and neutrons \( N \) using pandas. Before we do this it is -always useful (unless you have a binary file or other types of compressed -data) to actually open the file and simply take a look at it! -

    - -

    In particular, the program that outputs the final nuclear masses is written in Fortran with a specific format. It means that we need to figure out the format and which columns contain the data we are interested in. Pandas comes with a function that reads formatted output. After having admired the file, we are now ready to start massaging it with pandas. The file begins with some basic format information.

    - - -
    -
    -
    -
    -
    -
    """                                                                                                                         
    -This is taken from the data file of the mass 2016 evaluation.                                                               
    -All files are 3436 lines long with 124 character per line.                                                                  
    -       Headers are 39 lines long.                                                                                           
    -   col 1     :  Fortran character control: 1 = page feed  0 = line feed                                                     
    -   format    :  a1,i3,i5,i5,i5,1x,a3,a4,1x,f13.5,f11.5,f11.3,f9.3,1x,a2,f11.3,f9.3,1x,i3,1x,f12.5,f11.5                     
    -   These formats are reflected in the pandas widths variable below, see the statement                                       
    -   widths=(1,3,5,5,5,1,3,4,1,13,11,11,9,1,2,11,9,1,3,1,12,11,1),                                                            
    -   Pandas has also a variable header, with length 39 in this case.                                                          
    -"""
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -

    The data we are interested in are in columns 2, 3, 4 and 11, giving us -the number of neutrons, protons, mass numbers and binding energies, -respectively. We add also for the sake of completeness the element name. The data are in fixed-width formatted lines and we will -covert them into the pandas DataFrame structure. -

    - - - -
    -
    -
    -
    -
    -
    # Read the experimental data with Pandas
    -Masses = pd.read_fwf(infile, usecols=(2,3,4,6,11),
    -              names=('N', 'Z', 'A', 'Element', 'Ebinding'),
    -              widths=(1,3,5,5,5,1,3,4,1,13,11,11,9,1,2,11,9,1,3,1,12,11,1),
    -              header=39,
    -              index_col=False)
    -
    -# Extrapolated values are indicated by '#' in place of the decimal place, so
    -# the Ebinding column won't be numeric. Coerce to float and drop these entries.
    -Masses['Ebinding'] = pd.to_numeric(Masses['Ebinding'], errors='coerce')
    -Masses = Masses.dropna()
    -# Convert from keV to MeV.
    -Masses['Ebinding'] /= 1000
    -
    -# Group the DataFrame by nucleon number, A.
    -Masses = Masses.groupby('A')
    -# Find the rows of the grouped DataFrame with the maximum binding energy.
    -Masses = Masses.apply(lambda t: t[t.Ebinding==t.Ebinding.max()])
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -

    We have now read in the data, grouped them according to the variables we are interested in. -We see how easy it is to reorganize the data using pandas. If we -were to do these operations in C/C++ or Fortran, we would have had to -write various functions/subroutines which perform the above -reorganizations for us. Having reorganized the data, we can now start -to make some simple fits using both the functionalities in numpy and -Scikit-Learn afterwards. -

    - -

    Now we define five variables which contain -the number of nucleons \( A \), the number of protons \( Z \) and the number of neutrons \( N \), the element name and finally the energies themselves. -

    - - -
    -
    -
    -
    -
    -
    A = Masses['A']
    -Z = Masses['Z']
    -N = Masses['N']
    -Element = Masses['Element']
    -Energies = Masses['Ebinding']
    -print(Masses)
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -

    The next step, and we will define this mathematically later, is to set up the so-called design matrix. We will throughout call this matrix \( \boldsymbol{X} \). -It has dimensionality \( p\times n \), where \( n \) is the number of data points and \( p \) are the so-called predictors. In our case here they are given by the number of polynomials in \( A \) we wish to include in the fit. -

    - - -
    -
    -
    -
    -
    -
    # Now we set up the design matrix X
    -X = np.zeros((len(A),5))
    -X[:,0] = 1
    -X[:,1] = A
    -X[:,2] = A**(2.0/3.0)
    -X[:,3] = A**(-1.0/3.0)
    -X[:,4] = A**(-1.0)
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -

    With scikitlearn we are now ready to use linear regression and fit our data.

    - - -
    -
    -
    -
    -
    -
    clf = skl.LinearRegression().fit(X, Energies)
    -fity = clf.predict(X)
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -

    Pretty simple! -Now we can print measures of how our fit is doing, the coefficients from the fits and plot the final fit together with our data. -

    - - -
    -
    -
    -
    -
    -
    # The mean squared error                               
    -print("Mean squared error: %.2f" % mean_squared_error(Energies, fity))
    -# Explained variance score: 1 is perfect prediction                                 
    -print('Variance score: %.2f' % r2_score(Energies, fity))
    -# Mean absolute error                                                           
    -print('Mean absolute error: %.2f' % mean_absolute_error(Energies, fity))
    -print(clf.coef_, clf.intercept_)
    -
    -Masses['Eapprox']  = fity
    -# Generate a plot comparing the experimental with the fitted values values.
    -fig, ax = plt.subplots()
    -ax.set_xlabel(r'$A = N + Z$')
    -ax.set_ylabel(r'$E_\mathrm{bind}\,/\mathrm{MeV}$')
    -ax.plot(Masses['A'], Masses['Ebinding'], alpha=0.7, lw=2,
    -            label='Ame2016')
    -ax.plot(Masses['A'], Masses['Eapprox'], alpha=0.7, lw=2, c='m',
    -            label='Fit')
    -ax.legend()
    -save_fig("Masses2016")
    -plt.show()
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    And what about using neural networks?

    -

    The seaborn package allows us to visualize data in an efficient way. Note that we use scikit-learn's multi-layer perceptron (or feed forward neural network) -functionality. -

    - - -
    -
    -
    -
    -
    -
    from sklearn.neural_network import MLPRegressor
    -from sklearn.metrics import accuracy_score
    -import seaborn as sns
    -
    -
    -X_train = X
    -Y_train = Energies
    -n_hidden_neurons = 50
    -epochs = 100
    -# store models for later use
    -eta_vals = np.logspace(-3, 0, 4)
    -lmbd_vals = np.logspace(-3, 0, 4)
    -# store the models for later use
    -DNN_scikit = np.zeros((len(eta_vals), len(lmbd_vals)), dtype=object)
    -train_accuracy = np.zeros((len(eta_vals), len(lmbd_vals)))
    -sns.set()
    -for i, eta in enumerate(eta_vals):
    -    for j, lmbd in enumerate(lmbd_vals):
    -        dnn = MLPRegressor(hidden_layer_sizes=(n_hidden_neurons), activation='relu', solver='adam',
    -                            alpha=lmbd, learning_rate_init=eta, max_iter=epochs)
    -        dnn.fit(X_train, Y_train)
    -        DNN_scikit[i][j] = dnn
    -        train_accuracy[i][j] = dnn.score(X_train, Y_train)
    -        fity = dnn.predict(X_train)
    -        MSE = mean_squared_error(Y_train, fity)
    -        print("Mean squared error: %.2f" % mean_squared_error(Y_train, fity))
    -        train_accuracy[i][j] = MSE
    -fig, ax = plt.subplots(figsize = (10, 10))
    -sns.heatmap(train_accuracy, annot=True, ax=ax, cmap="viridis")
    -ax.set_title("Training Accuracy")
    -ax.set_ylabel("$\eta$")
    -ax.set_xlabel("$\lambda$")
    -plt.show()
    -print(train_accuracy)
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    A first summary

    - -

    The aim behind these introductory words was to present to you various -Python libraries and their functionalities, in particular libraries like -numpy, pandas, xarray and matplotlib and other that make our life much easier -in handling various data sets and visualizing data. -

    - -

    Furthermore, -Scikit-Learn allows us with few lines of code to implement popular -Machine Learning algorithms for supervised learning. Later we will meet Tensorflow, a powerful library for deep learning. -Now it is time to dive more into the details of various methods. We will start with linear regression and try to take a deeper look at what it entails. -

    +

    Try out Pandas AI

    diff --git a/doc/pub/week34/html/._week34-bs038.html b/doc/pub/week34/html/._week34-bs038.html index b0b3faebd..94d81a4b4 100644 --- a/doc/pub/week34/html/._week34-bs038.html +++ b/doc/pub/week34/html/._week34-bs038.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({

  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • @@ -350,22 +347,810 @@ MathJax.Hub.Config({

     

     

     

    -

    Why Linear Regression (aka Ordinary Least Squares and family)

    +

    Simple linear regression model using scikit-learn

    + +

    We start with perhaps our simplest possible example, using Scikit-Learn to perform linear regression analysis on a data set produced by us.

    + +

    What follows is a simple Python code where we have defined a function +\( y \) in terms of the variable \( x \). Both are defined as vectors with \( 100 \) entries. +The numbers in the vector \( \boldsymbol{x} \) are given +by random numbers generated with a uniform distribution with entries +\( x_i \in [0,1] \) (more about probability distribution functions +later). These values are then used to define a function \( y(x) \) +(tabulated again as a vector) with a linear dependence on \( x \) plus a +random noise added via the normal distribution. +

    + +

    The Numpy functions are imported used the import numpy as np +statement and the random number generator for the uniform distribution +is called using the function np.random.rand(), where we specificy +that we want \( 100 \) random variables. Using Numpy we define +automatically an array with the specified number of elements, \( 100 \) in +our case. With the Numpy function randn() we can compute random +numbers with the normal distribution (mean value \( \mu \) equal to zero and +variance \( \sigma^2 \) set to one) and produce the values of \( y \) assuming a linear +dependence as function of \( x \) +

    + +$$ +y = 2x+N(0,1), +$$ + +

    where \( N(0,1) \) represents random numbers generated by the normal +distribution. From Scikit-Learn we import then the +LinearRegression functionality and make a prediction \( \tilde{y} = +\alpha + \beta x \) using the function fit(x,y). We call the set of +data \( (\boldsymbol{x},\boldsymbol{y}) \) for our training data. The Python package +scikit-learn has also a functionality which extracts the above +fitting parameters \( \alpha \) and \( \beta \) (see below). Later we will +distinguish between training data and test data. +

    + +

    For plotting we use the Python package +matplotlib which produces publication +quality figures. Feel free to explore the extensive +gallery of examples. In +this example we plot our original values of \( x \) and \( y \) as well as the +prediction ypredict (\( \tilde{y} \)), which attempts at fitting our +data with a straight line. +

    + +

    The Python code follows here.

    + + +
    +
    +
    +
    +
    +
    # Importing various packages
    +import numpy as np
    +import matplotlib.pyplot as plt
    +from sklearn.linear_model import LinearRegression
    +
    +x = np.random.rand(100,1)
    +y = 2*x+np.random.randn(100,1)
    +linreg = LinearRegression()
    +linreg.fit(x,y)
    +xnew = np.array([[0],[1]])
    +ypredict = linreg.predict(xnew)
    +
    +plt.plot(xnew, ypredict, "r-")
    +plt.plot(x, y ,'ro')
    +plt.axis([0,1.0,0, 5.0])
    +plt.xlabel(r'$x$')
    +plt.ylabel(r'$y$')
    +plt.title(r'Simple Linear Regression')
    +plt.show()
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    This example serves several aims. It allows us to demonstrate several +aspects of data analysis and later machine learning algorithms. The +immediate visualization shows that our linear fit is not +impressive. It goes through the data points, but there are many +outliers which are not reproduced by our linear regression. We could +now play around with this small program and change for example the +factor in front of \( x \) and the normal distribution. Try to change the +function \( y \) to +

    + +$$ +y = 10x+0.01 \times N(0,1), +$$ + +

    where \( x \) is defined as before. Does the fit look better? Indeed, by +reducing the role of the noise given by the normal distribution we see immediately that +our linear prediction seemingly reproduces better the training +set. However, this testing 'by the eye' is obviouly not satisfactory in the +long run. Here we have only defined the training data and our model, and +have not discussed a more rigorous approach to the cost function. +

    + +

    We need more rigorous criteria in defining whether we have succeeded or +not in modeling our training data. You will be surprised to see that +many scientists seldomly venture beyond this 'by the eye' approach. A +standard approach for the cost function is the so-called \( \chi^2 \) +function (a variant of the mean-squared error (MSE)) +

    + +$$ \chi^2 = \frac{1}{n} +\sum_{i=0}^{n-1}\frac{(y_i-\tilde{y}_i)^2}{\sigma_i^2}, +$$ + +

    where \( \sigma_i^2 \) is the variance (to be defined later) of the entry +\( y_i \). We may not know the explicit value of \( \sigma_i^2 \), it serves +however the aim of scaling the equations and make the cost function +dimensionless. +

    + +

    Minimizing the cost function is a central aspect of +our discussions to come. Finding its minima as function of the model +parameters (\( \alpha \) and \( \beta \) in our case) will be a recurring +theme in these series of lectures. Essentially all machine learning +algorithms we will discuss center around the minimization of the +chosen cost function. This depends in turn on our specific +model for describing the data, a typical situation in supervised +learning. Automatizing the search for the minima of the cost function is a +central ingredient in all algorithms. Typical methods which are +employed are various variants of gradient methods. These will be +discussed in more detail later. Again, you'll be surprised to hear that +many practitioners minimize the above function ''by the eye', popularly dubbed as +'chi by the eye'. That is, change a parameter and see (visually and numerically) that +the \( \chi^2 \) function becomes smaller. +

    + +

    There are many ways to define the cost function. A simpler approach is to look at the relative difference between the training data and the predicted data, that is we define +the relative error (why would we prefer the MSE instead of the relative error?) as +

    + +$$ +\epsilon_{\mathrm{relative}}= \frac{\vert \boldsymbol{y} -\boldsymbol{\tilde{y}}\vert}{\vert \boldsymbol{y}\vert}. +$$ + +

    The squared cost function results in an arithmetic mean-unbiased +estimator, and the absolute-value cost function results in a +median-unbiased estimator (in the one-dimensional case, and a +geometric median-unbiased estimator for the multi-dimensional +case). The squared cost function has the disadvantage that it has the tendency +to be dominated by outliers. +

    + +

    We can modify easily the above Python code and plot the relative error instead

    + + +
    +
    +
    +
    +
    +
    import numpy as np
    +import matplotlib.pyplot as plt
    +from sklearn.linear_model import LinearRegression
    +
    +x = np.random.rand(100,1)
    +y = 5*x+0.01*np.random.randn(100,1)
    +linreg = LinearRegression()
    +linreg.fit(x,y)
    +ypredict = linreg.predict(x)
    +
    +plt.plot(x, np.abs(ypredict-y)/abs(y), "ro")
    +plt.axis([0,1.0,0.0, 0.5])
    +plt.xlabel(r'$x$')
    +plt.ylabel(r'$\epsilon_{\mathrm{relative}}$')
    +plt.title(r'Relative error')
    +plt.show()
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    Depending on the parameter in front of the normal distribution, we may +have a small or larger relative error. Try to play around with +different training data sets and study (graphically) the value of the +relative error. +

    + +

    As mentioned above, Scikit-Learn has an impressive functionality. +We can for example extract the values of \( \alpha \) and \( \beta \) and +their error estimates, or the variance and standard deviation and many +other properties from the statistical data analysis. +

    + +

    Here we show an +example of the functionality of Scikit-Learn. +

    + + +
    +
    +
    +
    +
    +
    import numpy as np 
    +import matplotlib.pyplot as plt 
    +from sklearn.linear_model import LinearRegression 
    +from sklearn.metrics import mean_squared_error, r2_score, mean_squared_log_error, mean_absolute_error
    +
    +x = np.random.rand(100,1)
    +y = 2.0+ 5*x+0.5*np.random.randn(100,1)
    +linreg = LinearRegression()
    +linreg.fit(x,y)
    +ypredict = linreg.predict(x)
    +print('The intercept alpha: \n', linreg.intercept_)
    +print('Coefficient beta : \n', linreg.coef_)
    +# The mean squared error                               
    +print("Mean squared error: %.2f" % mean_squared_error(y, ypredict))
    +# Explained variance score: 1 is perfect prediction                                 
    +print('Variance score: %.2f' % r2_score(y, ypredict))
    +# Mean squared log error                                                        
    +print('Mean squared log error: %.2f' % mean_squared_log_error(y, ypredict) )
    +# Mean absolute error                                                           
    +print('Mean absolute error: %.2f' % mean_absolute_error(y, ypredict))
    +plt.plot(x, ypredict, "r-")
    +plt.plot(x, y ,'ro')
    +plt.axis([0.0,1.0,1.5, 7.0])
    +plt.xlabel(r'$x$')
    +plt.ylabel(r'$y$')
    +plt.title(r'Linear Regression fit ')
    +plt.show()
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    The function coef gives us the parameter \( \beta \) of our fit while intercept yields +\( \alpha \). Depending on the constant in front of the normal distribution, we get values near or far from \( \alpha =2 \) and \( \beta =5 \). Try to play around with different parameters in front of the normal distribution. The function meansquarederror gives us the mean square error, a risk metric corresponding to the expected value of the squared (quadratic) error or loss defined as +

    +$$ MSE(\boldsymbol{y},\boldsymbol{\tilde{y}}) = \frac{1}{n} +\sum_{i=0}^{n-1}(y_i-\tilde{y}_i)^2, +$$ + +

    The smaller the value, the better the fit. Ideally we would like to +have an MSE equal zero. The attentive reader has probably recognized +this function as being similar to the \( \chi^2 \) function defined above. +

    + +

    The r2score function computes \( R^2 \), the coefficient of +determination. It provides a measure of how well future samples are +likely to be predicted by the model. Best possible score is 1.0 and it +can be negative (because the model can be arbitrarily worse). A +constant model that always predicts the expected value of \( \boldsymbol{y} \), +disregarding the input features, would get a \( R^2 \) score of \( 0.0 \). +

    + +

    If \( \tilde{\boldsymbol{y}}_i \) is the predicted value of the \( i-th \) sample and \( y_i \) is the corresponding true value, then the score \( R^2 \) is defined as

    +$$ +R^2(\boldsymbol{y}, \tilde{\boldsymbol{y}}) = 1 - \frac{\sum_{i=0}^{n - 1} (y_i - \tilde{y}_i)^2}{\sum_{i=0}^{n - 1} (y_i - \bar{y})^2}, +$$ + +

    where we have defined the mean value of \( \boldsymbol{y} \) as

    +$$ +\bar{y} = \frac{1}{n} \sum_{i=0}^{n - 1} y_i. +$$ + +

    Another quantity taht we will meet again in our discussions of regression analysis is + the mean absolute error (MAE), a risk metric corresponding to the expected value of the absolute error loss or what we call the \( l1 \)-norm loss. In our discussion above we presented the relative error. +The MAE is defined as follows +

    +$$ +\text{MAE}(\boldsymbol{y}, \boldsymbol{\tilde{y}}) = \frac{1}{n} \sum_{i=0}^{n-1} \left| y_i - \tilde{y}_i \right|. +$$ + +

    We present the +squared logarithmic (quadratic) error +

    +$$ +\text{MSLE}(\boldsymbol{y}, \boldsymbol{\tilde{y}}) = \frac{1}{n} \sum_{i=0}^{n - 1} (\log_e (1 + y_i) - \log_e (1 + \tilde{y}_i) )^2, +$$ + +

    where \( \log_e (x) \) stands for the natural logarithm of \( x \). This error +estimate is best to use when targets having exponential growth, such +as population counts, average sales of a commodity over a span of +years etc. +

    + +

    Finally, another cost function is the Huber cost function used in robust regression.

    + +

    The rationale behind this possible cost function is its reduced +sensitivity to outliers in the data set. In our discussions on +dimensionality reduction and normalization of data we will meet other +ways of dealing with outliers. +

    + +

    The Huber cost function is defined as

    +$$ +H_{\delta}(\boldsymbol{a})=\left\{\begin{array}{cc}\frac{1}{2} \boldsymbol{a}^{2}& \text{for }|\boldsymbol{a}|\leq \delta\\ \delta (|\boldsymbol{a}|-\frac{1}{2}\delta ),&\text{otherwise}.\end{array}\right. +$$ + +

    Here \( \boldsymbol{a}=\boldsymbol{y} - \boldsymbol{\tilde{y}} \).

    + +

    We will discuss in more detail these and other functions in the +various lectures and lab sessions. +

    +

    To our real data: nuclear binding energies. Brief reminder on masses and binding energies

    + +

    Let us now dive into nuclear physics and remind ourselves briefly about some basic features about binding +energies. A basic quantity which can be measured for the ground +states of nuclei is the atomic mass \( M(N, Z) \) of the neutral atom with +atomic mass number \( A \) and charge \( Z \). The number of neutrons is \( N \). There are indeed several sophisticated experiments worldwide which allow us to measure this quantity to high precision (parts per million even). +

    + +

    Atomic masses are usually tabulated in terms of the mass excess defined by

    +$$ +\Delta M(N, Z) = M(N, Z) - uA, +$$ + +

    where \( u \) is the Atomic Mass Unit

    +$$ +u = M(^{12}\mathrm{C})/12 = 931.4940954(57) \hspace{0.1cm} \mathrm{MeV}/c^2. +$$ + +

    The nucleon masses are

    +$$ +m_p = 1.00727646693(9)u, +$$ + +

    and

    +$$ +m_n = 939.56536(8)\hspace{0.1cm} \mathrm{MeV}/c^2 = 1.0086649156(6)u. +$$ + +

    In the 2016 mass evaluation of by W.J.Huang, G.Audi, M.Wang, F.G.Kondev, S.Naimi and X.Xu +there are data on masses and decays of 3437 nuclei. +

    + +

    The nuclear binding energy is defined as the energy required to break +up a given nucleus into its constituent parts of \( N \) neutrons and \( Z \) +protons. In terms of the atomic masses \( M(N, Z) \) the binding energy is +defined by +

    + +$$ +BE(N, Z) = ZM_H c^2 + Nm_n c^2 - M(N, Z)c^2 , +$$ + +

    where \( M_H \) is the mass of the hydrogen atom and \( m_n \) is the mass of the neutron. +In terms of the mass excess the binding energy is given by +

    +$$ +BE(N, Z) = Z\Delta_H c^2 + N\Delta_n c^2 -\Delta(N, Z)c^2 , +$$ + +

    where \( \Delta_H c^2 = 7.2890 \) MeV and \( \Delta_n c^2 = 8.0713 \) MeV.

    + +

    A popular and physically intuitive model which can be used to parametrize +the experimental binding energies as function of \( A \), is the so-called +liquid drop model. The ansatz is based on the following expression +

    + +$$ +BE(N,Z) = a_1A-a_2A^{2/3}-a_3\frac{Z^2}{A^{1/3}}-a_4\frac{(N-Z)^2}{A}, +$$ + +

    where \( A \) stands for the number of nucleons and the $a_i$s are parameters which are determined by a fit +to the experimental data. +

    + +

    To arrive at the above expression we have assumed that we can make the following assumptions:

    -

    Fitting a continuous function with linear parameterization in terms of the parameters \( \boldsymbol{\beta} \).

    -

    For more discussions of Ridge and Lasso regression, Wessel van Wieringen's article is highly recommended. -Similarly, Mehta et al's article is also recommended. +

    We could also add a so-called pairing term, which is a correction term that +arises from the tendency of proton pairs and neutron pairs to +occur. An even number of particles is more stable than an odd number. +

    +

    Organizing our data

    + +

    Let us start with reading and organizing our data. +We start with the compilation of masses and binding energies from 2016. +After having downloaded this file to our own computer, we are now ready to read the file and start structuring our data. +

    + +

    We start with preparing folders for storing our calculations and the data file over masses and binding energies. We import also various modules that we will find useful in order to present various Machine Learning methods. Here we focus mainly on the functionality of scikit-learn.

    + + +
    +
    +
    +
    +
    +
    # Common imports
    +import numpy as np
    +import pandas as pd
    +import matplotlib.pyplot as plt
    +import sklearn.linear_model as skl
    +from sklearn.model_selection import train_test_split
    +from sklearn.metrics import mean_squared_error, r2_score, mean_absolute_error
    +import os
    +
    +# Where to save the figures and data files
    +PROJECT_ROOT_DIR = "Results"
    +FIGURE_ID = "Results/FigureFiles"
    +DATA_ID = "DataFiles/"
    +
    +if not os.path.exists(PROJECT_ROOT_DIR):
    +    os.mkdir(PROJECT_ROOT_DIR)
    +
    +if not os.path.exists(FIGURE_ID):
    +    os.makedirs(FIGURE_ID)
    +
    +if not os.path.exists(DATA_ID):
    +    os.makedirs(DATA_ID)
    +
    +def image_path(fig_id):
    +    return os.path.join(FIGURE_ID, fig_id)
    +
    +def data_path(dat_id):
    +    return os.path.join(DATA_ID, dat_id)
    +
    +def save_fig(fig_id):
    +    plt.savefig(image_path(fig_id) + ".png", format='png')
    +
    +infile = open(data_path("MassEval2016.dat"),'r')
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    Before we proceed, we define also a function for making our plots. You can obviously avoid this and simply set up various matplotlib commands every time you need them. You may however find it convenient to collect all such commands in one function and simply call this function.

    + + +
    +
    +
    +
    +
    +
    from pylab import plt, mpl
    +plt.style.use('seaborn')
    +mpl.rcParams['font.family'] = 'serif'
    +
    +def MakePlot(x,y, styles, labels, axlabels):
    +    plt.figure(figsize=(10,6))
    +    for i in range(len(x)):
    +        plt.plot(x[i], y[i], styles[i], label = labels[i])
    +        plt.xlabel(axlabels[0])
    +        plt.ylabel(axlabels[1])
    +    plt.legend(loc=0)
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    Our next step is to read the data on experimental binding energies and +reorganize them as functions of the mass number \( A \), the number of +protons \( Z \) and neutrons \( N \) using pandas. Before we do this it is +always useful (unless you have a binary file or other types of compressed +data) to actually open the file and simply take a look at it! +

    + +

    In particular, the program that outputs the final nuclear masses is written in Fortran with a specific format. It means that we need to figure out the format and which columns contain the data we are interested in. Pandas comes with a function that reads formatted output. After having admired the file, we are now ready to start massaging it with pandas. The file begins with some basic format information.

    + + +
    +
    +
    +
    +
    +
    """                                                                                                                         
    +This is taken from the data file of the mass 2016 evaluation.                                                               
    +All files are 3436 lines long with 124 character per line.                                                                  
    +       Headers are 39 lines long.                                                                                           
    +   col 1     :  Fortran character control: 1 = page feed  0 = line feed                                                     
    +   format    :  a1,i3,i5,i5,i5,1x,a3,a4,1x,f13.5,f11.5,f11.3,f9.3,1x,a2,f11.3,f9.3,1x,i3,1x,f12.5,f11.5                     
    +   These formats are reflected in the pandas widths variable below, see the statement                                       
    +   widths=(1,3,5,5,5,1,3,4,1,13,11,11,9,1,2,11,9,1,3,1,12,11,1),                                                            
    +   Pandas has also a variable header, with length 39 in this case.                                                          
    +"""
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    The data we are interested in are in columns 2, 3, 4 and 11, giving us +the number of neutrons, protons, mass numbers and binding energies, +respectively. We add also for the sake of completeness the element name. The data are in fixed-width formatted lines and we will +covert them into the pandas DataFrame structure. +

    + + + +
    +
    +
    +
    +
    +
    # Read the experimental data with Pandas
    +Masses = pd.read_fwf(infile, usecols=(2,3,4,6,11),
    +              names=('N', 'Z', 'A', 'Element', 'Ebinding'),
    +              widths=(1,3,5,5,5,1,3,4,1,13,11,11,9,1,2,11,9,1,3,1,12,11,1),
    +              header=39,
    +              index_col=False)
    +
    +# Extrapolated values are indicated by '#' in place of the decimal place, so
    +# the Ebinding column won't be numeric. Coerce to float and drop these entries.
    +Masses['Ebinding'] = pd.to_numeric(Masses['Ebinding'], errors='coerce')
    +Masses = Masses.dropna()
    +# Convert from keV to MeV.
    +Masses['Ebinding'] /= 1000
    +
    +# Group the DataFrame by nucleon number, A.
    +Masses = Masses.groupby('A')
    +# Find the rows of the grouped DataFrame with the maximum binding energy.
    +Masses = Masses.apply(lambda t: t[t.Ebinding==t.Ebinding.max()])
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    We have now read in the data, grouped them according to the variables we are interested in. +We see how easy it is to reorganize the data using pandas. If we +were to do these operations in C/C++ or Fortran, we would have had to +write various functions/subroutines which perform the above +reorganizations for us. Having reorganized the data, we can now start +to make some simple fits using both the functionalities in numpy and +Scikit-Learn afterwards. +

    + +

    Now we define five variables which contain +the number of nucleons \( A \), the number of protons \( Z \) and the number of neutrons \( N \), the element name and finally the energies themselves. +

    + + +
    +
    +
    +
    +
    +
    A = Masses['A']
    +Z = Masses['Z']
    +N = Masses['N']
    +Element = Masses['Element']
    +Energies = Masses['Ebinding']
    +print(Masses)
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    The next step, and we will define this mathematically later, is to set up the so-called design matrix. We will throughout call this matrix \( \boldsymbol{X} \). +It has dimensionality \( p\times n \), where \( n \) is the number of data points and \( p \) are the so-called predictors. In our case here they are given by the number of polynomials in \( A \) we wish to include in the fit. +

    + + +
    +
    +
    +
    +
    +
    # Now we set up the design matrix X
    +X = np.zeros((len(A),5))
    +X[:,0] = 1
    +X[:,1] = A
    +X[:,2] = A**(2.0/3.0)
    +X[:,3] = A**(-1.0/3.0)
    +X[:,4] = A**(-1.0)
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    With scikitlearn we are now ready to use linear regression and fit our data.

    + + +
    +
    +
    +
    +
    +
    clf = skl.LinearRegression().fit(X, Energies)
    +fity = clf.predict(X)
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    Pretty simple! +Now we can print measures of how our fit is doing, the coefficients from the fits and plot the final fit together with our data. +

    + + +
    +
    +
    +
    +
    +
    # The mean squared error                               
    +print("Mean squared error: %.2f" % mean_squared_error(Energies, fity))
    +# Explained variance score: 1 is perfect prediction                                 
    +print('Variance score: %.2f' % r2_score(Energies, fity))
    +# Mean absolute error                                                           
    +print('Mean absolute error: %.2f' % mean_absolute_error(Energies, fity))
    +print(clf.coef_, clf.intercept_)
    +
    +Masses['Eapprox']  = fity
    +# Generate a plot comparing the experimental with the fitted values values.
    +fig, ax = plt.subplots()
    +ax.set_xlabel(r'$A = N + Z$')
    +ax.set_ylabel(r'$E_\mathrm{bind}\,/\mathrm{MeV}$')
    +ax.plot(Masses['A'], Masses['Ebinding'], alpha=0.7, lw=2,
    +            label='Ame2016')
    +ax.plot(Masses['A'], Masses['Eapprox'], alpha=0.7, lw=2, c='m',
    +            label='Fit')
    +ax.legend()
    +save_fig("Masses2016")
    +plt.show()
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    And what about using neural networks?

    +

    The seaborn package allows us to visualize data in an efficient way. Note that we use scikit-learn's multi-layer perceptron (or feed forward neural network) +functionality. +

    + + +
    +
    +
    +
    +
    +
    from sklearn.neural_network import MLPRegressor
    +from sklearn.metrics import accuracy_score
    +import seaborn as sns
    +
    +
    +X_train = X
    +Y_train = Energies
    +n_hidden_neurons = 50
    +epochs = 100
    +# store models for later use
    +eta_vals = np.logspace(-3, 0, 4)
    +lmbd_vals = np.logspace(-3, 0, 4)
    +# store the models for later use
    +DNN_scikit = np.zeros((len(eta_vals), len(lmbd_vals)), dtype=object)
    +train_accuracy = np.zeros((len(eta_vals), len(lmbd_vals)))
    +sns.set()
    +for i, eta in enumerate(eta_vals):
    +    for j, lmbd in enumerate(lmbd_vals):
    +        dnn = MLPRegressor(hidden_layer_sizes=(n_hidden_neurons), activation='relu', solver='adam',
    +                            alpha=lmbd, learning_rate_init=eta, max_iter=epochs)
    +        dnn.fit(X_train, Y_train)
    +        DNN_scikit[i][j] = dnn
    +        train_accuracy[i][j] = dnn.score(X_train, Y_train)
    +        fity = dnn.predict(X_train)
    +        MSE = mean_squared_error(Y_train, fity)
    +        print("Mean squared error: %.2f" % mean_squared_error(Y_train, fity))
    +        train_accuracy[i][j] = MSE
    +fig, ax = plt.subplots(figsize = (10, 10))
    +sns.heatmap(train_accuracy, annot=True, ax=ax, cmap="viridis")
    +ax.set_title("Training Accuracy")
    +ax.set_ylabel("$\eta$")
    +ax.set_xlabel("$\lambda$")
    +plt.show()
    +print(train_accuracy)
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    A first summary

    + +

    The aim behind these introductory words was to present to you various +Python libraries and their functionalities, in particular libraries like +numpy, pandas, xarray and matplotlib and other that make our life much easier +in handling various data sets and visualizing data. +

    + +

    Furthermore, +Scikit-Learn allows us with few lines of code to implement popular +Machine Learning algorithms for supervised learning. Later we will meet Tensorflow, a powerful library for deep learning. +Now it is time to dive more into the details of various methods. We will start with linear regression and try to take a deeper look at what it entails.

    diff --git a/doc/pub/week34/html/._week34-bs039.html b/doc/pub/week34/html/._week34-bs039.html index 3c0172398..f17e95e55 100644 --- a/doc/pub/week34/html/._week34-bs039.html +++ b/doc/pub/week34/html/._week34-bs039.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({

  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • @@ -350,25 +347,23 @@ MathJax.Hub.Config({

     

     

     

    -

    Regression analysis, overarching aims

    -
    -
    - +

    Why Linear Regression (aka Ordinary Least Squares and family)

    -

    Regression modeling deals with the description of the sampling distribution of a given random variable \( y \) and how it varies as function of another variable or a set of such variables \( \boldsymbol{x} =[x_0, x_1,\dots, x_{n-1}]^T \). -The first variable is called the dependent, the outcome or the response variable while the set of variables \( \boldsymbol{x} \) is called the independent variable, or the predictor variable or the explanatory variable, or simply just the inputs. -

    - -

    A regression model aims at finding a likelihood function \( p(\boldsymbol{y}\vert \boldsymbol{x}) \) or in the more traditional sense a function \( \boldsymbol{y}(\boldsymbol{x}) \), that is the conditional distribution for \( \boldsymbol{y} \) with a given \( \boldsymbol{x} \). The estimation of \( p(\boldsymbol{y}\vert \boldsymbol{x}) \) is made using a data set with

    +

    Fitting a continuous function with linear parameterization in terms of the parameters \( \boldsymbol{\beta} \).

    -

    The goal of the regression analysis is to extract/exploit relationship between \( \boldsymbol{y} \) and \( \boldsymbol{x} \) in order to infer specific dependencies, approximations to the likelihood functions, functional relationships and to make predictions, making fits and many other things.

    -
    -
    - +

    For more discussions of Ridge and Lasso regression, Wessel van Wieringen's article is highly recommended. +Similarly, Mehta et al's article is also recommended. +

    diff --git a/doc/pub/week34/html/._week34-bs040.html b/doc/pub/week34/html/._week34-bs040.html index 407afaac4..50e2bd647 100644 --- a/doc/pub/week34/html/._week34-bs040.html +++ b/doc/pub/week34/html/._week34-bs040.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({

  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • @@ -350,30 +347,22 @@ MathJax.Hub.Config({

     

     

     

    -

    Regression analysis, overarching aims II

    +

    Regression analysis, overarching aims

    -

    Consider an experiment in which \( p \) characteristics/features of \( n \) samples are -measured. The data from this experiment, for various explanatory variables \( p \) are normally represented by a matrix -\( \mathbf{X} \). +

    Regression modeling deals with the description of the sampling distribution of a given random variable \( y \) and how it varies as function of another variable or a set of such variables \( \boldsymbol{x} =[x_0, x_1,\dots, x_{n-1}]^T \). +The first variable is called the dependent, the outcome or the response variable while the set of variables \( \boldsymbol{x} \) is called the independent variable, or the predictor variable or the explanatory variable, or simply just the inputs.

    -

    The matrix \( \mathbf{X} \) is called the design -matrix. Additional information of the samples is available in the -form of \( \boldsymbol{y} \) (also as above). The variable \( \boldsymbol{y} \) is -generally referred to as the response variable. The aim of -regression analysis is to explain \( \boldsymbol{y} \) in terms of -\( \boldsymbol{X} \) through a functional relationship like \( y_i = -f(\mathbf{X}_{i,\ast}) \). When no prior knowledge on the form of -\( f(\cdot) \) is available, it is common to assume a linear relationship -between \( \boldsymbol{X} \) and \( \boldsymbol{y} \). This assumption gives rise to -the linear regression model where \( \boldsymbol{\beta} = [\beta_0, \ldots, -\beta_{p-1}]^{T} \) are the regression parameters. -

    - -

    Linear regression gives us a set of analytical equations for the parameters \( \beta_j \).

    +

    A regression model aims at finding a likelihood function \( p(\boldsymbol{y}\vert \boldsymbol{x}) \) or in the more traditional sense a function \( \boldsymbol{y}(\boldsymbol{x}) \), that is the conditional distribution for \( \boldsymbol{y} \) with a given \( \boldsymbol{x} \). The estimation of \( p(\boldsymbol{y}\vert \boldsymbol{x}) \) is made using a data set with

    + +

    The goal of the regression analysis is to extract/exploit relationship between \( \boldsymbol{y} \) and \( \boldsymbol{x} \) in order to infer specific dependencies, approximations to the likelihood functions, functional relationships and to make predictions, making fits and many other things.

    diff --git a/doc/pub/week34/html/._week34-bs041.html b/doc/pub/week34/html/._week34-bs041.html index b6c613875..3ce7d6be1 100644 --- a/doc/pub/week34/html/._week34-bs041.html +++ b/doc/pub/week34/html/._week34-bs041.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • @@ -350,29 +347,30 @@ MathJax.Hub.Config({

     

     

     

    -

    Examples

    +

    Regression analysis, overarching aims II

    -

    In order to understand the relation among the predictors (or features or properties) \( p \), the set of data \( n \) and the target (outcome, output etc) \( \boldsymbol{y} \), -consider the model we discussed for describing nuclear binding energies. + +

    Consider an experiment in which \( p \) characteristics/features of \( n \) samples are +measured. The data from this experiment, for various explanatory variables \( p \) are normally represented by a matrix +\( \mathbf{X} \).

    -

    There we assumed that we could parametrize the data using a polynomial approximation based on the liquid drop model. -Assuming -

    -$$ -BE(A) = a_0+a_1A+a_2A^{2/3}+a_3A^{-1/3}+a_4A^{-1}, -$$ - -

    we have five predictors, that is the intercept, the \( A \) dependent term, the \( A^{2/3} \) term and the \( A^{-1/3} \) and \( A^{-1} \) terms. -This gives \( p=0,1,2,3,4 \). Furthermore we have \( n \) entries for each predictor. It means that our design matrix is a -\( p\times n \) matrix \( \boldsymbol{X} \). +

    The matrix \( \mathbf{X} \) is called the design +matrix. Additional information of the samples is available in the +form of \( \boldsymbol{y} \) (also as above). The variable \( \boldsymbol{y} \) is +generally referred to as the response variable. The aim of +regression analysis is to explain \( \boldsymbol{y} \) in terms of +\( \boldsymbol{X} \) through a functional relationship like \( y_i = +f(\mathbf{X}_{i,\ast}) \). When no prior knowledge on the form of +\( f(\cdot) \) is available, it is common to assume a linear relationship +between \( \boldsymbol{X} \) and \( \boldsymbol{y} \). This assumption gives rise to +the linear regression model where \( \boldsymbol{\beta} = [\beta_0, \ldots, +\beta_{p-1}]^{T} \) are the regression parameters.

    -

    Here the predictors are based on a model we have made. A popular data set which is widely encountered in ML applications is the -so-called credit card default data from Taiwan. The data set contains data on \( n=30000 \) credit card holders with predictors like gender, marital status, age, profession, education, etc. In total there are \( 24 \) such predictors or attributes leading to a design matrix of dimensionality \( 24 \times 30000 \). This is however a classification problem and we will come back to it when we discuss Logistic Regression. -

    +

    Linear regression gives us a set of analytical equations for the parameters \( \beta_j \).

    diff --git a/doc/pub/week34/html/._week34-bs042.html b/doc/pub/week34/html/._week34-bs042.html index 4596f45b7..3904cb9f9 100644 --- a/doc/pub/week34/html/._week34-bs042.html +++ b/doc/pub/week34/html/._week34-bs042.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • @@ -350,18 +347,29 @@ MathJax.Hub.Config({

     

     

     

    -

    General linear models and linear algebra

    +

    Examples

    -

    Before we proceed let us study a case where we aim at fitting a set of data \( \boldsymbol{y}=[y_0,y_1,\dots,y_{n-1}] \). We could think of these data as a result of an experiment or a complicated numerical experiment. These data are functions of a series of variables \( \boldsymbol{x}=[x_0,x_1,\dots,x_{n-1}] \), that is \( y_i = y(x_i) \) with \( i=0,1,2,\dots,n-1 \). The variables \( x_i \) could represent physical quantities like time, temperature, position etc. We assume that \( y(x) \) is a smooth function.

    +

    In order to understand the relation among the predictors (or features or properties) \( p \), the set of data \( n \) and the target (outcome, output etc) \( \boldsymbol{y} \), +consider the model we discussed for describing nuclear binding energies. +

    -

    Since obtaining these data points may not be trivial, we want to use these data to fit a function which can allow us to make predictions for values of \( y \) which are not in the present set. The perhaps simplest approach is to assume we can parametrize our function in terms of a polynomial of degree \( n-1 \) with \( n \) points, that is

    +

    There we assumed that we could parametrize the data using a polynomial approximation based on the liquid drop model. +Assuming +

    $$ -y=y(x) \rightarrow y(x_i)=\tilde{y}_i+\epsilon_i=\sum_{j=0}^{n-1} \beta_j x_i^j+\epsilon_i, +BE(A) = a_0+a_1A+a_2A^{2/3}+a_3A^{-1/3}+a_4A^{-1}, $$ -

    where \( \epsilon_i \) is the error in our approximation.

    +

    we have five predictors, that is the intercept, the \( A \) dependent term, the \( A^{2/3} \) term and the \( A^{-1/3} \) and \( A^{-1} \) terms. +This gives \( p=0,1,2,3,4 \). Furthermore we have \( n \) entries for each predictor. It means that our design matrix is a +\( p\times n \) matrix \( \boldsymbol{X} \). +

    + +

    Here the predictors are based on a model we have made. A popular data set which is widely encountered in ML applications is the +so-called credit card default data from Taiwan. The data set contains data on \( n=30000 \) credit card holders with predictors like gender, marital status, age, profession, education, etc. In total there are \( 24 \) such predictors or attributes leading to a design matrix of dimensionality \( 24 \times 30000 \). This is however a classification problem and we will come back to it when we discuss Logistic Regression. +

    diff --git a/doc/pub/week34/html/._week34-bs043.html b/doc/pub/week34/html/._week34-bs043.html index 30cf2fa3e..339de13d2 100644 --- a/doc/pub/week34/html/._week34-bs043.html +++ b/doc/pub/week34/html/._week34-bs043.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • @@ -350,20 +347,18 @@ MathJax.Hub.Config({

     

     

     

    -

    Rewriting the fitting procedure as a linear algebra problem

    +

    General linear models and linear algebra

    -

    For every set of values \( y_i,x_i \) we have thus the corresponding set of equations

    +

    Before we proceed let us study a case where we aim at fitting a set of data \( \boldsymbol{y}=[y_0,y_1,\dots,y_{n-1}] \). We could think of these data as a result of an experiment or a complicated numerical experiment. These data are functions of a series of variables \( \boldsymbol{x}=[x_0,x_1,\dots,x_{n-1}] \), that is \( y_i = y(x_i) \) with \( i=0,1,2,\dots,n-1 \). The variables \( x_i \) could represent physical quantities like time, temperature, position etc. We assume that \( y(x) \) is a smooth function.

    + +

    Since obtaining these data points may not be trivial, we want to use these data to fit a function which can allow us to make predictions for values of \( y \) which are not in the present set. The perhaps simplest approach is to assume we can parametrize our function in terms of a polynomial of degree \( n-1 \) with \( n \) points, that is

    $$ -\begin{align*} -y_0&=\beta_0+\beta_1x_0^1+\beta_2x_0^2+\dots+\beta_{n-1}x_0^{n-1}+\epsilon_0\\ -y_1&=\beta_0+\beta_1x_1^1+\beta_2x_1^2+\dots+\beta_{n-1}x_1^{n-1}+\epsilon_1\\ -y_2&=\beta_0+\beta_1x_2^1+\beta_2x_2^2+\dots+\beta_{n-1}x_2^{n-1}+\epsilon_2\\ -\dots & \dots \\ -y_{n-1}&=\beta_0+\beta_1x_{n-1}^1+\beta_2x_{n-1}^2+\dots+\beta_{n-1}x_{n-1}^{n-1}+\epsilon_{n-1}.\\ -\end{align*} +y=y(x) \rightarrow y(x_i)=\tilde{y}_i+\epsilon_i=\sum_{j=0}^{n-1} \beta_j x_i^j+\epsilon_i, $$ + +

    where \( \epsilon_i \) is the error in our approximation.

    diff --git a/doc/pub/week34/html/._week34-bs044.html b/doc/pub/week34/html/._week34-bs044.html index 1e144810e..8c4a1edd9 100644 --- a/doc/pub/week34/html/._week34-bs044.html +++ b/doc/pub/week34/html/._week34-bs044.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • @@ -350,43 +347,20 @@ MathJax.Hub.Config({

     

     

     

    -

    Rewriting the fitting procedure as a linear algebra problem, more details

    +

    Rewriting the fitting procedure as a linear algebra problem

    -

    Defining the vectors

    +

    For every set of values \( y_i,x_i \) we have thus the corresponding set of equations

    $$ -\boldsymbol{y} = [y_0,y_1, y_2,\dots, y_{n-1}]^T, +\begin{align*} +y_0&=\beta_0+\beta_1x_0^1+\beta_2x_0^2+\dots+\beta_{n-1}x_0^{n-1}+\epsilon_0\\ +y_1&=\beta_0+\beta_1x_1^1+\beta_2x_1^2+\dots+\beta_{n-1}x_1^{n-1}+\epsilon_1\\ +y_2&=\beta_0+\beta_1x_2^1+\beta_2x_2^2+\dots+\beta_{n-1}x_2^{n-1}+\epsilon_2\\ +\dots & \dots \\ +y_{n-1}&=\beta_0+\beta_1x_{n-1}^1+\beta_2x_{n-1}^2+\dots+\beta_{n-1}x_{n-1}^{n-1}+\epsilon_{n-1}.\\ +\end{align*} $$ - -

    and

    -$$ -\boldsymbol{\beta} = [\beta_0,\beta_1, \beta_2,\dots, \beta_{n-1}]^T, -$$ - -

    and

    -$$ -\boldsymbol{\epsilon} = [\epsilon_0,\epsilon_1, \epsilon_2,\dots, \epsilon_{n-1}]^T, -$$ - -

    and the design matrix

    -$$ -\boldsymbol{X}= -\begin{bmatrix} -1& x_{0}^1 &x_{0}^2& \dots & \dots &x_{0}^{n-1}\\ -1& x_{1}^1 &x_{1}^2& \dots & \dots &x_{1}^{n-1}\\ -1& x_{2}^1 &x_{2}^2& \dots & \dots &x_{2}^{n-1}\\ -\dots& \dots &\dots& \dots & \dots &\dots\\ -1& x_{n-1}^1 &x_{n-1}^2& \dots & \dots &x_{n-1}^{n-1}\\ -\end{bmatrix} -$$ - -

    we can rewrite our equations as

    -$$ -\boldsymbol{y} = \boldsymbol{X}\boldsymbol{\beta}+\boldsymbol{\epsilon}. -$$ - -

    The above design matrix is called a Vandermonde matrix.

    diff --git a/doc/pub/week34/html/._week34-bs045.html b/doc/pub/week34/html/._week34-bs045.html index f1457f0e1..4fb457312 100644 --- a/doc/pub/week34/html/._week34-bs045.html +++ b/doc/pub/week34/html/._week34-bs045.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • @@ -350,32 +347,43 @@ MathJax.Hub.Config({

     

     

     

    -

    Generalizing the fitting procedure as a linear algebra problem

    +

    Rewriting the fitting procedure as a linear algebra problem, more details

    - -

    We are obviously not limited to the above polynomial expansions. We -could replace the various powers of \( x \) with elements of Fourier -series or instead of \( x_i^j \) we could have \( \cos{(j x_i)} \) or \( \sin{(j -x_i)} \), or time series or other orthogonal functions. For every set -of values \( y_i,x_i \) we can then generalize the equations to -

    - +

    Defining the vectors

    $$ -\begin{align*} -y_0&=\beta_0x_{00}+\beta_1x_{01}+\beta_2x_{02}+\dots+\beta_{n-1}x_{0n-1}+\epsilon_0\\ -y_1&=\beta_0x_{10}+\beta_1x_{11}+\beta_2x_{12}+\dots+\beta_{n-1}x_{1n-1}+\epsilon_1\\ -y_2&=\beta_0x_{20}+\beta_1x_{21}+\beta_2x_{22}+\dots+\beta_{n-1}x_{2n-1}+\epsilon_2\\ -\dots & \dots \\ -y_{i}&=\beta_0x_{i0}+\beta_1x_{i1}+\beta_2x_{i2}+\dots+\beta_{n-1}x_{in-1}+\epsilon_i\\ -\dots & \dots \\ -y_{n-1}&=\beta_0x_{n-1,0}+\beta_1x_{n-1,2}+\beta_2x_{n-1,2}+\dots+\beta_{n-1}x_{n-1,n-1}+\epsilon_{n-1}.\\ -\end{align*} +\boldsymbol{y} = [y_0,y_1, y_2,\dots, y_{n-1}]^T, $$ +

    and

    +$$ +\boldsymbol{\beta} = [\beta_0,\beta_1, \beta_2,\dots, \beta_{n-1}]^T, +$$ -Note that we have \( p=n \) here. The matrix is symmetric. This is generally not the case! +

    and

    +$$ +\boldsymbol{\epsilon} = [\epsilon_0,\epsilon_1, \epsilon_2,\dots, \epsilon_{n-1}]^T, +$$ + +

    and the design matrix

    +$$ +\boldsymbol{X}= +\begin{bmatrix} +1& x_{0}^1 &x_{0}^2& \dots & \dots &x_{0}^{n-1}\\ +1& x_{1}^1 &x_{1}^2& \dots & \dots &x_{1}^{n-1}\\ +1& x_{2}^1 &x_{2}^2& \dots & \dots &x_{2}^{n-1}\\ +\dots& \dots &\dots& \dots & \dots &\dots\\ +1& x_{n-1}^1 &x_{n-1}^2& \dots & \dots &x_{n-1}^{n-1}\\ +\end{bmatrix} +$$ + +

    we can rewrite our equations as

    +$$ +\boldsymbol{y} = \boldsymbol{X}\boldsymbol{\beta}+\boldsymbol{\epsilon}. +$$ + +

    The above design matrix is called a Vandermonde matrix.

    diff --git a/doc/pub/week34/html/._week34-bs046.html b/doc/pub/week34/html/._week34-bs046.html index 62e1bc767..2b6428579 100644 --- a/doc/pub/week34/html/._week34-bs046.html +++ b/doc/pub/week34/html/._week34-bs046.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • @@ -354,24 +351,28 @@ MathJax.Hub.Config({
    -

    We redefine in turn the matrix \( \boldsymbol{X} \) as

    + +

    We are obviously not limited to the above polynomial expansions. We +could replace the various powers of \( x \) with elements of Fourier +series or instead of \( x_i^j \) we could have \( \cos{(j x_i)} \) or \( \sin{(j +x_i)} \), or time series or other orthogonal functions. For every set +of values \( y_i,x_i \) we can then generalize the equations to +

    + $$ -\boldsymbol{X}= -\begin{bmatrix} -x_{00}& x_{01} &x_{02}& \dots & \dots &x_{0,n-1}\\ -x_{10}& x_{11} &x_{12}& \dots & \dots &x_{1,n-1}\\ -x_{20}& x_{21} &x_{22}& \dots & \dots &x_{2,n-1}\\ -\dots& \dots &\dots& \dots & \dots &\dots\\ -x_{n-1,0}& x_{n-1,1} &x_{n-1,2}& \dots & \dots &x_{n-1,n-1}\\ -\end{bmatrix} +\begin{align*} +y_0&=\beta_0x_{00}+\beta_1x_{01}+\beta_2x_{02}+\dots+\beta_{n-1}x_{0n-1}+\epsilon_0\\ +y_1&=\beta_0x_{10}+\beta_1x_{11}+\beta_2x_{12}+\dots+\beta_{n-1}x_{1n-1}+\epsilon_1\\ +y_2&=\beta_0x_{20}+\beta_1x_{21}+\beta_2x_{22}+\dots+\beta_{n-1}x_{2n-1}+\epsilon_2\\ +\dots & \dots \\ +y_{i}&=\beta_0x_{i0}+\beta_1x_{i1}+\beta_2x_{i2}+\dots+\beta_{n-1}x_{in-1}+\epsilon_i\\ +\dots & \dots \\ +y_{n-1}&=\beta_0x_{n-1,0}+\beta_1x_{n-1,2}+\beta_2x_{n-1,2}+\dots+\beta_{n-1}x_{n-1,n-1}+\epsilon_{n-1}.\\ +\end{align*} $$ -

    and without loss of generality we rewrite again our equations as

    -$$ -\boldsymbol{y} = \boldsymbol{X}\boldsymbol{\beta}+\boldsymbol{\epsilon}. -$$ -

    The left-hand side of this equation is kwown. Our error vector \( \boldsymbol{\epsilon} \) and the parameter vector \( \boldsymbol{\beta} \) are our unknow quantities. How can we obtain the optimal set of \( \beta_i \) values?

    +Note that we have \( p=n \) here. The matrix is symmetric. This is generally not the case!
    diff --git a/doc/pub/week34/html/._week34-bs047.html b/doc/pub/week34/html/._week34-bs047.html index db6895f6d..18a44fe21 100644 --- a/doc/pub/week34/html/._week34-bs047.html +++ b/doc/pub/week34/html/._week34-bs047.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • @@ -350,27 +347,28 @@ MathJax.Hub.Config({

     

     

     

    -

    Optimizing our parameters

    +

    Generalizing the fitting procedure as a linear algebra problem

    -

    We have defined the matrix \( \boldsymbol{X} \) via the equations

    +

    We redefine in turn the matrix \( \boldsymbol{X} \) as

    $$ -\begin{align*} -y_0&=\beta_0x_{00}+\beta_1x_{01}+\beta_2x_{02}+\dots+\beta_{n-1}x_{0n-1}+\epsilon_0\\ -y_1&=\beta_0x_{10}+\beta_1x_{11}+\beta_2x_{12}+\dots+\beta_{n-1}x_{1n-1}+\epsilon_1\\ -y_2&=\beta_0x_{20}+\beta_1x_{21}+\beta_2x_{22}+\dots+\beta_{n-1}x_{2n-1}+\epsilon_1\\ -\dots & \dots \\ -y_{i}&=\beta_0x_{i0}+\beta_1x_{i1}+\beta_2x_{i2}+\dots+\beta_{n-1}x_{in-1}+\epsilon_1\\ -\dots & \dots \\ -y_{n-1}&=\beta_0x_{n-1,0}+\beta_1x_{n-1,2}+\beta_2x_{n-1,2}+\dots+\beta_{n-1}x_{n-1,n-1}+\epsilon_{n-1}.\\ -\end{align*} +\boldsymbol{X}= +\begin{bmatrix} +x_{00}& x_{01} &x_{02}& \dots & \dots &x_{0,n-1}\\ +x_{10}& x_{11} &x_{12}& \dots & \dots &x_{1,n-1}\\ +x_{20}& x_{21} &x_{22}& \dots & \dots &x_{2,n-1}\\ +\dots& \dots &\dots& \dots & \dots &\dots\\ +x_{n-1,0}& x_{n-1,1} &x_{n-1,2}& \dots & \dots &x_{n-1,n-1}\\ +\end{bmatrix} $$ -

    As we noted above, we stayed with a system with the design matrix - \( \boldsymbol{X}\in {\mathbb{R}}^{n\times n} \), that is we have \( p=n \). For reasons to come later (algorithmic arguments) we will hereafter define -our matrix as \( \boldsymbol{X}\in {\mathbb{R}}^{n\times p} \), with the predictors refering to the column numbers and the entries \( n \) being the row elements. -

    +

    and without loss of generality we rewrite again our equations as

    +$$ +\boldsymbol{y} = \boldsymbol{X}\boldsymbol{\beta}+\boldsymbol{\epsilon}. +$$ + +

    The left-hand side of this equation is kwown. Our error vector \( \boldsymbol{\epsilon} \) and the parameter vector \( \boldsymbol{\beta} \) are our unknow quantities. How can we obtain the optimal set of \( \beta_i \) values?

    diff --git a/doc/pub/week34/html/._week34-bs048.html b/doc/pub/week34/html/._week34-bs048.html index 28a2a3165..b1c11d02c 100644 --- a/doc/pub/week34/html/._week34-bs048.html +++ b/doc/pub/week34/html/._week34-bs048.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • @@ -350,108 +347,30 @@ MathJax.Hub.Config({

     

     

     

    -

    Our model for the nuclear binding energies

    - -

    In our introductory notes we looked at the so-called liquid drop model. Let us remind ourselves about what we did by looking at the code.

    - -

    We restate the parts of the code we are most interested in.

    - - -
    -
    -
    -
    -
    -
    # Common imports
    -import numpy as np
    -import pandas as pd
    -import matplotlib.pyplot as plt
    -from IPython.display import display
    -import os
    -
    -# Where to save the figures and data files
    -PROJECT_ROOT_DIR = "Results"
    -FIGURE_ID = "Results/FigureFiles"
    -DATA_ID = "DataFiles/"
    -
    -if not os.path.exists(PROJECT_ROOT_DIR):
    -    os.mkdir(PROJECT_ROOT_DIR)
    -
    -if not os.path.exists(FIGURE_ID):
    -    os.makedirs(FIGURE_ID)
    -
    -if not os.path.exists(DATA_ID):
    -    os.makedirs(DATA_ID)
    -
    -def image_path(fig_id):
    -    return os.path.join(FIGURE_ID, fig_id)
    -
    -def data_path(dat_id):
    -    return os.path.join(DATA_ID, dat_id)
    -
    -def save_fig(fig_id):
    -    plt.savefig(image_path(fig_id) + ".png", format='png')
    -
    -infile = open(data_path("MassEval2016.dat"),'r')
    -
    -
    -# Read the experimental data with Pandas
    -Masses = pd.read_fwf(infile, usecols=(2,3,4,6,11),
    -              names=('N', 'Z', 'A', 'Element', 'Ebinding'),
    -              widths=(1,3,5,5,5,1,3,4,1,13,11,11,9,1,2,11,9,1,3,1,12,11,1),
    -              header=39,
    -              index_col=False)
    -
    -# Extrapolated values are indicated by '#' in place of the decimal place, so
    -# the Ebinding column won't be numeric. Coerce to float and drop these entries.
    -Masses['Ebinding'] = pd.to_numeric(Masses['Ebinding'], errors='coerce')
    -Masses = Masses.dropna()
    -# Convert from keV to MeV.
    -Masses['Ebinding'] /= 1000
    -
    -# Group the DataFrame by nucleon number, A.
    -Masses = Masses.groupby('A')
    -# Find the rows of the grouped DataFrame with the maximum binding energy.
    -Masses = Masses.apply(lambda t: t[t.Ebinding==t.Ebinding.max()])
    -A = Masses['A']
    -Z = Masses['Z']
    -N = Masses['N']
    -Element = Masses['Element']
    -Energies = Masses['Ebinding']
    -
    -# Now we set up the design matrix X
    -X = np.zeros((len(A),5))
    -X[:,0] = 1
    -X[:,1] = A
    -X[:,2] = A**(2.0/3.0)
    -X[:,3] = A**(-1.0/3.0)
    -X[:,4] = A**(-1.0)
    -# Then nice printout using pandas
    -DesignMatrix = pd.DataFrame(X)
    -DesignMatrix.index = A
    -DesignMatrix.columns = ['1', 'A', 'A^(2/3)', 'A^(-1/3)', '1/A']
    -display(DesignMatrix)
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -

    With \( \boldsymbol{\beta}\in {\mathbb{R}}^{p\times 1} \), it means that we will hereafter write our equations for the approximation as

    +

    Optimizing our parameters

    +
    +
    + +

    We have defined the matrix \( \boldsymbol{X} \) via the equations

    $$ -\boldsymbol{\tilde{y}}= \boldsymbol{X}\boldsymbol{\beta}, +\begin{align*} +y_0&=\beta_0x_{00}+\beta_1x_{01}+\beta_2x_{02}+\dots+\beta_{n-1}x_{0n-1}+\epsilon_0\\ +y_1&=\beta_0x_{10}+\beta_1x_{11}+\beta_2x_{12}+\dots+\beta_{n-1}x_{1n-1}+\epsilon_1\\ +y_2&=\beta_0x_{20}+\beta_1x_{21}+\beta_2x_{22}+\dots+\beta_{n-1}x_{2n-1}+\epsilon_1\\ +\dots & \dots \\ +y_{i}&=\beta_0x_{i0}+\beta_1x_{i1}+\beta_2x_{i2}+\dots+\beta_{n-1}x_{in-1}+\epsilon_1\\ +\dots & \dots \\ +y_{n-1}&=\beta_0x_{n-1,0}+\beta_1x_{n-1,2}+\beta_2x_{n-1,2}+\dots+\beta_{n-1}x_{n-1,n-1}+\epsilon_{n-1}.\\ +\end{align*} $$ -

    throughout these lectures.

    +

    As we noted above, we stayed with a system with the design matrix + \( \boldsymbol{X}\in {\mathbb{R}}^{n\times n} \), that is we have \( p=n \). For reasons to come later (algorithmic arguments) we will hereafter define +our matrix as \( \boldsymbol{X}\in {\mathbb{R}}^{n\times p} \), with the predictors refering to the column numbers and the entries \( n \) being the row elements. +

    +
    +
    +

    diff --git a/doc/pub/week34/html/._week34-bs049.html b/doc/pub/week34/html/._week34-bs049.html index e46e17785..930dce2d6 100644 --- a/doc/pub/week34/html/._week34-bs049.html +++ b/doc/pub/week34/html/._week34-bs049.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({

  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • @@ -350,39 +347,108 @@ MathJax.Hub.Config({

     

     

     

    -

    Optimizing our parameters, more details

    -
    -
    - -

    With the above we use the design matrix to define the approximation \( \boldsymbol{\tilde{y}} \) via the unknown quantity \( \boldsymbol{\beta} \) as

    +

    Our model for the nuclear binding energies

    + +

    In our introductory notes we looked at the so-called liquid drop model. Let us remind ourselves about what we did by looking at the code.

    + +

    We restate the parts of the code we are most interested in.

    + + +
    +
    +
    +
    +
    +
    # Common imports
    +import numpy as np
    +import pandas as pd
    +import matplotlib.pyplot as plt
    +from IPython.display import display
    +import os
    +
    +# Where to save the figures and data files
    +PROJECT_ROOT_DIR = "Results"
    +FIGURE_ID = "Results/FigureFiles"
    +DATA_ID = "DataFiles/"
    +
    +if not os.path.exists(PROJECT_ROOT_DIR):
    +    os.mkdir(PROJECT_ROOT_DIR)
    +
    +if not os.path.exists(FIGURE_ID):
    +    os.makedirs(FIGURE_ID)
    +
    +if not os.path.exists(DATA_ID):
    +    os.makedirs(DATA_ID)
    +
    +def image_path(fig_id):
    +    return os.path.join(FIGURE_ID, fig_id)
    +
    +def data_path(dat_id):
    +    return os.path.join(DATA_ID, dat_id)
    +
    +def save_fig(fig_id):
    +    plt.savefig(image_path(fig_id) + ".png", format='png')
    +
    +infile = open(data_path("MassEval2016.dat"),'r')
    +
    +
    +# Read the experimental data with Pandas
    +Masses = pd.read_fwf(infile, usecols=(2,3,4,6,11),
    +              names=('N', 'Z', 'A', 'Element', 'Ebinding'),
    +              widths=(1,3,5,5,5,1,3,4,1,13,11,11,9,1,2,11,9,1,3,1,12,11,1),
    +              header=39,
    +              index_col=False)
    +
    +# Extrapolated values are indicated by '#' in place of the decimal place, so
    +# the Ebinding column won't be numeric. Coerce to float and drop these entries.
    +Masses['Ebinding'] = pd.to_numeric(Masses['Ebinding'], errors='coerce')
    +Masses = Masses.dropna()
    +# Convert from keV to MeV.
    +Masses['Ebinding'] /= 1000
    +
    +# Group the DataFrame by nucleon number, A.
    +Masses = Masses.groupby('A')
    +# Find the rows of the grouped DataFrame with the maximum binding energy.
    +Masses = Masses.apply(lambda t: t[t.Ebinding==t.Ebinding.max()])
    +A = Masses['A']
    +Z = Masses['Z']
    +N = Masses['N']
    +Element = Masses['Element']
    +Energies = Masses['Ebinding']
    +
    +# Now we set up the design matrix X
    +X = np.zeros((len(A),5))
    +X[:,0] = 1
    +X[:,1] = A
    +X[:,2] = A**(2.0/3.0)
    +X[:,3] = A**(-1.0/3.0)
    +X[:,4] = A**(-1.0)
    +# Then nice printout using pandas
    +DesignMatrix = pd.DataFrame(X)
    +DesignMatrix.index = A
    +DesignMatrix.columns = ['1', 'A', 'A^(2/3)', 'A^(-1/3)', '1/A']
    +display(DesignMatrix)
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    With \( \boldsymbol{\beta}\in {\mathbb{R}}^{p\times 1} \), it means that we will hereafter write our equations for the approximation as

    $$ \boldsymbol{\tilde{y}}= \boldsymbol{X}\boldsymbol{\beta}, $$ -

    and in order to find the optimal parameters \( \beta_i \) instead of solving the above linear algebra problem, we define a function which gives a measure of the spread between the values \( y_i \) (which represent hopefully the exact values) and the parameterized values \( \tilde{y}_i \), namely

    -$$ -C(\boldsymbol{\beta})=\frac{1}{n}\sum_{i=0}^{n-1}\left(y_i-\tilde{y}_i\right)^2=\frac{1}{n}\left\{\left(\boldsymbol{y}-\boldsymbol{\tilde{y}}\right)^T\left(\boldsymbol{y}-\boldsymbol{\tilde{y}}\right)\right\}, -$$ - -

    or using the matrix \( \boldsymbol{X} \) and in a more compact matrix-vector notation as

    -$$ -C(\boldsymbol{\beta})=\frac{1}{n}\left\{\left(\boldsymbol{y}-\boldsymbol{X}\boldsymbol{\beta}\right)^T\left(\boldsymbol{y}-\boldsymbol{X}\boldsymbol{\beta}\right)\right\}. -$$ - -

    This function is one possible way to define the so-called cost function.

    - -

    It is also common to define -the function \( C \) as -

    - -$$ -C(\boldsymbol{\beta})=\frac{1}{2n}\sum_{i=0}^{n-1}\left(y_i-\tilde{y}_i\right)^2, -$$ - -

    since when taking the first derivative with respect to the unknown parameters \( \beta \), the factor of \( 2 \) cancels out.

    -
    -
    - +

    throughout these lectures.

    diff --git a/doc/pub/week34/html/._week34-bs050.html b/doc/pub/week34/html/._week34-bs050.html index 84c05b464..93121d895 100644 --- a/doc/pub/week34/html/._week34-bs050.html +++ b/doc/pub/week34/html/._week34-bs050.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({

  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • @@ -350,53 +347,36 @@ MathJax.Hub.Config({

     

     

     

    -

    Interpretations and optimizing our parameters

    +

    Optimizing our parameters, more details

    - -

    The function

    +

    With the above we use the design matrix to define the approximation \( \boldsymbol{\tilde{y}} \) via the unknown quantity \( \boldsymbol{\beta} \) as

    $$ -C(\boldsymbol{\beta})=\frac{1}{n}\left\{\left(\boldsymbol{y}-\boldsymbol{X}\boldsymbol{\beta}\right)^T\left(\boldsymbol{y}-\boldsymbol{X}\boldsymbol{\beta}\right)\right\}, +\boldsymbol{\tilde{y}}= \boldsymbol{X}\boldsymbol{\beta}, $$ -

    can be linked to the variance of the quantity \( y_i \) if we interpret the latter as the mean value. -When linking (see the discussion below) with the maximum likelihood approach below, we will indeed interpret \( y_i \) as a mean value -

    +

    and in order to find the optimal parameters \( \beta_i \) instead of solving the above linear algebra problem, we define a function which gives a measure of the spread between the values \( y_i \) (which represent hopefully the exact values) and the parameterized values \( \tilde{y}_i \), namely

    $$ -y_{i}=\langle y_i \rangle = \beta_0x_{i,0}+\beta_1x_{i,1}+\beta_2x_{i,2}+\dots+\beta_{n-1}x_{i,n-1}+\epsilon_i, +C(\boldsymbol{\beta})=\frac{1}{n}\sum_{i=0}^{n-1}\left(y_i-\tilde{y}_i\right)^2=\frac{1}{n}\left\{\left(\boldsymbol{y}-\boldsymbol{\tilde{y}}\right)^T\left(\boldsymbol{y}-\boldsymbol{\tilde{y}}\right)\right\}, $$ -

    where \( \langle y_i \rangle \) is the mean value. Keep in mind also that -till now we have treated \( y_i \) as the exact value. Normally, the -response (dependent or outcome) variable \( y_i \) the outcome of a -numerical experiment or another type of experiment and is thus only an -approximation to the true value. It is then always accompanied by an -error estimate, often limited to a statistical error estimate given by -the standard deviation discussed earlier. In the discussion here we -will treat \( y_i \) as our exact value for the response variable. +

    or using the matrix \( \boldsymbol{X} \) and in a more compact matrix-vector notation as

    +$$ +C(\boldsymbol{\beta})=\frac{1}{n}\left\{\left(\boldsymbol{y}-\boldsymbol{X}\boldsymbol{\beta}\right)^T\left(\boldsymbol{y}-\boldsymbol{X}\boldsymbol{\beta}\right)\right\}. +$$ + +

    This function is one possible way to define the so-called cost function.

    + +

    It is also common to define +the function \( C \) as

    -

    In order to find the parameters \( \beta_i \) we will then minimize the spread of \( C(\boldsymbol{\beta}) \), that is we are going to solve the problem

    $$ -{\displaystyle \min_{\boldsymbol{\beta}\in -{\mathbb{R}}^{p}}}\frac{1}{n}\left\{\left(\boldsymbol{y}-\boldsymbol{X}\boldsymbol{\beta}\right)^T\left(\boldsymbol{y}-\boldsymbol{X}\boldsymbol{\beta}\right)\right\}. +C(\boldsymbol{\beta})=\frac{1}{2n}\sum_{i=0}^{n-1}\left(y_i-\tilde{y}_i\right)^2, $$ -

    In practical terms it means we will require

    -$$ -\frac{\partial C(\boldsymbol{\beta})}{\partial \beta_j} = \frac{\partial }{\partial \beta_j}\left[ \frac{1}{n}\sum_{i=0}^{n-1}\left(y_i-\beta_0x_{i,0}-\beta_1x_{i,1}-\beta_2x_{i,2}-\dots-\beta_{n-1}x_{i,n-1}\right)^2\right]=0, -$$ - -

    which results in

    -$$ -\frac{\partial C(\boldsymbol{\beta})}{\partial \beta_j} = -\frac{2}{n}\left[ \sum_{i=0}^{n-1}x_{ij}\left(y_i-\beta_0x_{i,0}-\beta_1x_{i,1}-\beta_2x_{i,2}-\dots-\beta_{n-1}x_{i,n-1}\right)\right]=0, -$$ - -

    or in a matrix-vector form as

    -$$ -\frac{\partial C(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}} = 0 = \boldsymbol{X}^T\left( \boldsymbol{y}-\boldsymbol{X}\boldsymbol{\beta}\right). -$$ +

    since when taking the first derivative with respect to the unknown parameters \( \beta \), the factor of \( 2 \) cancels out.

    diff --git a/doc/pub/week34/html/._week34-bs051.html b/doc/pub/week34/html/._week34-bs051.html index 375893c5f..d29ccc19b 100644 --- a/doc/pub/week34/html/._week34-bs051.html +++ b/doc/pub/week34/html/._week34-bs051.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • @@ -354,40 +351,49 @@ MathJax.Hub.Config({
    -

    We can rewrite

    + +

    The function

    $$ -\frac{\partial C(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}} = 0 = \boldsymbol{X}^T\left( \boldsymbol{y}-\boldsymbol{X}\boldsymbol{\beta}\right), +C(\boldsymbol{\beta})=\frac{1}{n}\left\{\left(\boldsymbol{y}-\boldsymbol{X}\boldsymbol{\beta}\right)^T\left(\boldsymbol{y}-\boldsymbol{X}\boldsymbol{\beta}\right)\right\}, $$ -

    as

    -$$ -\boldsymbol{X}^T\boldsymbol{y} = \boldsymbol{X}^T\boldsymbol{X}\boldsymbol{\beta}, -$$ - -

    and if the matrix \( \boldsymbol{X}^T\boldsymbol{X} \) is invertible we have the solution

    -$$ -\boldsymbol{\beta} =\left(\boldsymbol{X}^T\boldsymbol{X}\right)^{-1}\boldsymbol{X}^T\boldsymbol{y}. -$$ - -

    We note also that since our design matrix is defined as \( \boldsymbol{X}\in -{\mathbb{R}}^{n\times p} \), the product \( \boldsymbol{X}^T\boldsymbol{X} \in -{\mathbb{R}}^{p\times p} \). In the above case we have that \( p \ll n \), -in our case \( p=5 \) meaning that we end up with inverting a small -\( 5\times 5 \) matrix. This is a rather common situation, in many cases we end up with low-dimensional -matrices to invert. The methods discussed here and for many other -supervised learning algorithms like classification with logistic -regression or support vector machines, exhibit dimensionalities which -allow for the usage of direct linear algebra methods such as LU decomposition or Singular Value Decomposition (SVD) for finding the inverse of the matrix -\( \boldsymbol{X}^T\boldsymbol{X} \). +

    can be linked to the variance of the quantity \( y_i \) if we interpret the latter as the mean value. +When linking (see the discussion below) with the maximum likelihood approach below, we will indeed interpret \( y_i \) as a mean value

    -
    -
    +$$ +y_{i}=\langle y_i \rangle = \beta_0x_{i,0}+\beta_1x_{i,1}+\beta_2x_{i,2}+\dots+\beta_{n-1}x_{i,n-1}+\epsilon_i, +$$ +

    where \( \langle y_i \rangle \) is the mean value. Keep in mind also that +till now we have treated \( y_i \) as the exact value. Normally, the +response (dependent or outcome) variable \( y_i \) the outcome of a +numerical experiment or another type of experiment and is thus only an +approximation to the true value. It is then always accompanied by an +error estimate, often limited to a statistical error estimate given by +the standard deviation discussed earlier. In the discussion here we +will treat \( y_i \) as our exact value for the response variable. +

    -
    -
    - -

    Small question: Do you think the example we have at hand here (the nuclear binding energies) can lead to problems in inverting the matrix \( \boldsymbol{X}^T\boldsymbol{X} \)? What kind of problems can we expect?

    +

    In order to find the parameters \( \beta_i \) we will then minimize the spread of \( C(\boldsymbol{\beta}) \), that is we are going to solve the problem

    +$$ +{\displaystyle \min_{\boldsymbol{\beta}\in +{\mathbb{R}}^{p}}}\frac{1}{n}\left\{\left(\boldsymbol{y}-\boldsymbol{X}\boldsymbol{\beta}\right)^T\left(\boldsymbol{y}-\boldsymbol{X}\boldsymbol{\beta}\right)\right\}. +$$ + +

    In practical terms it means we will require

    +$$ +\frac{\partial C(\boldsymbol{\beta})}{\partial \beta_j} = \frac{\partial }{\partial \beta_j}\left[ \frac{1}{n}\sum_{i=0}^{n-1}\left(y_i-\beta_0x_{i,0}-\beta_1x_{i,1}-\beta_2x_{i,2}-\dots-\beta_{n-1}x_{i,n-1}\right)^2\right]=0, +$$ + +

    which results in

    +$$ +\frac{\partial C(\boldsymbol{\beta})}{\partial \beta_j} = -\frac{2}{n}\left[ \sum_{i=0}^{n-1}x_{ij}\left(y_i-\beta_0x_{i,0}-\beta_1x_{i,1}-\beta_2x_{i,2}-\dots-\beta_{n-1}x_{i,n-1}\right)\right]=0, +$$ + +

    or in a matrix-vector form as

    +$$ +\frac{\partial C(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}} = 0 = \boldsymbol{X}^T\left( \boldsymbol{y}-\boldsymbol{X}\boldsymbol{\beta}\right). +$$
    diff --git a/doc/pub/week34/html/._week34-bs052.html b/doc/pub/week34/html/._week34-bs052.html index 2077eef07..edd15aebf 100644 --- a/doc/pub/week34/html/._week34-bs052.html +++ b/doc/pub/week34/html/._week34-bs052.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • @@ -350,11 +347,47 @@ MathJax.Hub.Config({

     

     

     

    -

    Some useful matrix and vector expressions

    +

    Interpretations and optimizing our parameters

    +
    +
    + +

    We can rewrite

    +$$ +\frac{\partial C(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}} = 0 = \boldsymbol{X}^T\left( \boldsymbol{y}-\boldsymbol{X}\boldsymbol{\beta}\right), +$$ -

    See the handwritten notes at https://github.com/CompPhysics/MachineLearning/blob/master/doc/HandWrittenNotes/2022/NotesExercise5Week452022.pdf

    +

    as

    +$$ +\boldsymbol{X}^T\boldsymbol{y} = \boldsymbol{X}^T\boldsymbol{X}\boldsymbol{\beta}, +$$ + +

    and if the matrix \( \boldsymbol{X}^T\boldsymbol{X} \) is invertible we have the solution

    +$$ +\boldsymbol{\beta} =\left(\boldsymbol{X}^T\boldsymbol{X}\right)^{-1}\boldsymbol{X}^T\boldsymbol{y}. +$$ + +

    We note also that since our design matrix is defined as \( \boldsymbol{X}\in +{\mathbb{R}}^{n\times p} \), the product \( \boldsymbol{X}^T\boldsymbol{X} \in +{\mathbb{R}}^{p\times p} \). In the above case we have that \( p \ll n \), +in our case \( p=5 \) meaning that we end up with inverting a small +\( 5\times 5 \) matrix. This is a rather common situation, in many cases we end up with low-dimensional +matrices to invert. The methods discussed here and for many other +supervised learning algorithms like classification with logistic +regression or support vector machines, exhibit dimensionalities which +allow for the usage of direct linear algebra methods such as LU decomposition or Singular Value Decomposition (SVD) for finding the inverse of the matrix +\( \boldsymbol{X}^T\boldsymbol{X} \). +

    +
    +
    + + +
    +
    + +

    Small question: Do you think the example we have at hand here (the nuclear binding energies) can lead to problems in inverting the matrix \( \boldsymbol{X}^T\boldsymbol{X} \)? What kind of problems can we expect?

    +
    +
    -

    These notes will be discussed during one of the lectures.

    diff --git a/doc/pub/week34/html/._week34-bs053.html b/doc/pub/week34/html/._week34-bs053.html index 180b75d03..c2773af3f 100644 --- a/doc/pub/week34/html/._week34-bs053.html +++ b/doc/pub/week34/html/._week34-bs053.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({

  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs054.html b/doc/pub/week34/html/._week34-bs054.html index 8d855be35..f719e0b5e 100644 --- a/doc/pub/week34/html/._week34-bs054.html +++ b/doc/pub/week34/html/._week34-bs054.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs055.html b/doc/pub/week34/html/._week34-bs055.html index ecb461e34..6e6b856de 100644 --- a/doc/pub/week34/html/._week34-bs055.html +++ b/doc/pub/week34/html/._week34-bs055.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs056.html b/doc/pub/week34/html/._week34-bs056.html index 786535c6a..06bc18c6b 100644 --- a/doc/pub/week34/html/._week34-bs056.html +++ b/doc/pub/week34/html/._week34-bs056.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs057.html b/doc/pub/week34/html/._week34-bs057.html index 5bc909417..07b6944c1 100644 --- a/doc/pub/week34/html/._week34-bs057.html +++ b/doc/pub/week34/html/._week34-bs057.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs058.html b/doc/pub/week34/html/._week34-bs058.html index 2ffa636f0..87f918aa1 100644 --- a/doc/pub/week34/html/._week34-bs058.html +++ b/doc/pub/week34/html/._week34-bs058.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs059.html b/doc/pub/week34/html/._week34-bs059.html index b47f73a97..2ea81870e 100644 --- a/doc/pub/week34/html/._week34-bs059.html +++ b/doc/pub/week34/html/._week34-bs059.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs060.html b/doc/pub/week34/html/._week34-bs060.html index 355c25b9d..12208b866 100644 --- a/doc/pub/week34/html/._week34-bs060.html +++ b/doc/pub/week34/html/._week34-bs060.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs061.html b/doc/pub/week34/html/._week34-bs061.html index d971f9acd..aede29a1d 100644 --- a/doc/pub/week34/html/._week34-bs061.html +++ b/doc/pub/week34/html/._week34-bs061.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs062.html b/doc/pub/week34/html/._week34-bs062.html index 3dea0d139..875ac3c0c 100644 --- a/doc/pub/week34/html/._week34-bs062.html +++ b/doc/pub/week34/html/._week34-bs062.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs063.html b/doc/pub/week34/html/._week34-bs063.html index 2fd75c431..bd3408097 100644 --- a/doc/pub/week34/html/._week34-bs063.html +++ b/doc/pub/week34/html/._week34-bs063.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs064.html b/doc/pub/week34/html/._week34-bs064.html index 214fe4497..67578bf62 100644 --- a/doc/pub/week34/html/._week34-bs064.html +++ b/doc/pub/week34/html/._week34-bs064.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/._week34-bs065.html b/doc/pub/week34/html/._week34-bs065.html index b582ee603..5006feb0e 100644 --- a/doc/pub/week34/html/._week34-bs065.html +++ b/doc/pub/week34/html/._week34-bs065.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/week34-bs.html b/doc/pub/week34/html/week34-bs.html index fbff67b7c..6bc7a64d6 100644 --- a/doc/pub/week34/html/week34-bs.html +++ b/doc/pub/week34/html/week34-bs.html @@ -120,6 +120,7 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -189,10 +190,6 @@ doconce format html week34.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -303,26 +300,26 @@ MathJax.Hub.Config({
  • Numpy and arrays
  • Matrices in Python
  • Meet the Pandas
  • -
  •    Simple linear regression model using scikit-learn
  • -
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • -
  •    Organizing our data
  • -
  •    And what about using neural networks?
  • -
  • A first summary
  • -
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • -
  • Regression analysis, overarching aims
  • -
  • Regression analysis, overarching aims II
  • -
  • Examples
  • -
  • General linear models and linear algebra
  • -
  • Rewriting the fitting procedure as a linear algebra problem
  • -
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Generalizing the fitting procedure as a linear algebra problem
  • -
  • Optimizing our parameters
  • -
  • Our model for the nuclear binding energies
  • -
  • Optimizing our parameters, more details
  • +
  • Pandas AI
  • +
  •    Simple linear regression model using scikit-learn
  • +
  •    To our real data: nuclear binding energies. Brief reminder on masses and binding energies
  • +
  •    Organizing our data
  • +
  •    And what about using neural networks?
  • +
  • A first summary
  • +
  • Why Linear Regression (aka Ordinary Least Squares and family)
  • +
  • Regression analysis, overarching aims
  • +
  • Regression analysis, overarching aims II
  • +
  • Examples
  • +
  • General linear models and linear algebra
  • +
  • Rewriting the fitting procedure as a linear algebra problem
  • +
  • Rewriting the fitting procedure as a linear algebra problem, more details
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Generalizing the fitting procedure as a linear algebra problem
  • +
  • Optimizing our parameters
  • +
  • Our model for the nuclear binding energies
  • +
  • Optimizing our parameters, more details
  • Interpretations and optimizing our parameters
  • Interpretations and optimizing our parameters
  • -
  • Some useful matrix and vector expressions
  • Interpretations and optimizing our parameters
  • Own code for Ordinary Least Squares
  • Adding error analysis and training set up
  • diff --git a/doc/pub/week34/html/week34-reveal.html b/doc/pub/week34/html/week34-reveal.html index 18bc0e8dd..19a0b31dd 100644 --- a/doc/pub/week34/html/week34-reveal.html +++ b/doc/pub/week34/html/week34-reveal.html @@ -266,7 +266,7 @@ MathJax.Hub.Config({ @@ -1641,6 +1641,12 @@ For multidimensional arrays, we recommend strongly Pandas AI + +

    Try out Pandas AI

    + +

    Simple linear regression model using scikit-learn

    @@ -3021,14 +3027,6 @@ allow for the usage of direct linear algebra methods such as LU decomposi
    -
    -

    Some useful matrix and vector expressions

    - -

    See the handwritten notes at https://github.com/CompPhysics/MachineLearning/blob/master/doc/HandWrittenNotes/2022/NotesExercise5Week452022.pdf

    - -

    These notes will be discussed during one of the lectures.

    -
    -

    Interpretations and optimizing our parameters

    diff --git a/doc/pub/week34/html/week34-solarized.html b/doc/pub/week34/html/week34-solarized.html index c5a213177..88f3ee275 100644 --- a/doc/pub/week34/html/week34-solarized.html +++ b/doc/pub/week34/html/week34-solarized.html @@ -147,6 +147,7 @@ div.toc p,a { ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -216,10 +217,6 @@ div.toc p,a { 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -356,7 +353,7 @@ MathJax.Hub.Config({









    Course Format

    @@ -1655,6 +1652,11 @@ As we will see below it leads also to a very concice code close to the mathemati For multidimensional arrays, we recommend strongly xarray. xarray has much of the same flexibility as pandas, but allows for the extension to higher dimensions than two. We will see examples later of the usage of both pandas and xarray.

    +









    +

    Pandas AI

    + +

    Try out Pandas AI

    +









    Simple linear regression model using scikit-learn

    @@ -2942,13 +2944,6 @@ allow for the usage of direct linear algebra methods such as LU decomposi
    -









    -

    Some useful matrix and vector expressions

    - -

    See the handwritten notes at https://github.com/CompPhysics/MachineLearning/blob/master/doc/HandWrittenNotes/2022/NotesExercise5Week452022.pdf

    - -

    These notes will be discussed during one of the lectures.

    -









    Interpretations and optimizing our parameters

    diff --git a/doc/pub/week34/html/week34.html b/doc/pub/week34/html/week34.html index 5ee03dfaa..05c9236f0 100644 --- a/doc/pub/week34/html/week34.html +++ b/doc/pub/week34/html/week34.html @@ -224,6 +224,7 @@ div.toc p,a { ('Numpy and arrays', 2, None, 'numpy-and-arrays'), ('Matrices in Python', 2, None, 'matrices-in-python'), ('Meet the Pandas', 2, None, 'meet-the-pandas'), + ('Pandas AI', 2, None, 'pandas-ai'), ('Simple linear regression model using _scikit-learn_', 3, None, @@ -293,10 +294,6 @@ div.toc p,a { 2, None, 'interpretations-and-optimizing-our-parameters'), - ('Some useful matrix and vector expressions', - 2, - None, - 'some-useful-matrix-and-vector-expressions'), ('Interpretations and optimizing our parameters', 2, None, @@ -433,7 +430,7 @@ MathJax.Hub.Config({









    Course Format

    @@ -1732,6 +1729,11 @@ As we will see below it leads also to a very concice code close to the mathemati For multidimensional arrays, we recommend strongly xarray. xarray has much of the same flexibility as pandas, but allows for the extension to higher dimensions than two. We will see examples later of the usage of both pandas and xarray.

    +









    +

    Pandas AI

    + +

    Try out Pandas AI

    +









    Simple linear regression model using scikit-learn

    @@ -3019,13 +3021,6 @@ allow for the usage of direct linear algebra methods such as LU decomposi
    -









    -

    Some useful matrix and vector expressions

    - -

    See the handwritten notes at https://github.com/CompPhysics/MachineLearning/blob/master/doc/HandWrittenNotes/2022/NotesExercise5Week452022.pdf

    - -

    These notes will be discussed during one of the lectures.

    -









    Interpretations and optimizing our parameters

    diff --git a/doc/pub/week34/ipynb/ipynb-week34-src.tar.gz b/doc/pub/week34/ipynb/ipynb-week34-src.tar.gz index ec81db9c6..cb4dada3b 100644 Binary files a/doc/pub/week34/ipynb/ipynb-week34-src.tar.gz and b/doc/pub/week34/ipynb/ipynb-week34-src.tar.gz differ diff --git a/doc/pub/week34/ipynb/week34.ipynb b/doc/pub/week34/ipynb/week34.ipynb index 08d8159c8..9de607905 100644 --- a/doc/pub/week34/ipynb/week34.ipynb +++ b/doc/pub/week34/ipynb/week34.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "e68d0f91", + "id": "3e71c3ed", "metadata": { "editable": true }, @@ -14,7 +14,7 @@ }, { "cell_type": "markdown", - "id": "919216dd", + "id": "45b52799", "metadata": { "editable": true }, @@ -27,7 +27,7 @@ }, { "cell_type": "markdown", - "id": "d990119b", + "id": "ef4cb19e", "metadata": { "editable": true }, @@ -53,7 +53,7 @@ }, { "cell_type": "markdown", - "id": "12fb6433", + "id": "1e6b1300", "metadata": { "editable": true }, @@ -69,7 +69,7 @@ }, { "cell_type": "markdown", - "id": "fc7733d1", + "id": "31d1f84c", "metadata": { "editable": true }, @@ -93,7 +93,7 @@ }, { "cell_type": "markdown", - "id": "7b62d5a2", + "id": "53b48ed9", "metadata": { "editable": true }, @@ -102,12 +102,12 @@ "\n", "* Communications (email and more) via \n", "\n", - "* **Discord** channel at " + "* **Discord** channel at " ] }, { "cell_type": "markdown", - "id": "6b3a4a81", + "id": "b14cbd93", "metadata": { "editable": true }, @@ -129,7 +129,7 @@ }, { "cell_type": "markdown", - "id": "afc67709", + "id": "d9cab2bb", "metadata": { "editable": true }, @@ -159,7 +159,7 @@ }, { "cell_type": "markdown", - "id": "bbd60b9c", + "id": "b7eb2935", "metadata": { "editable": true }, @@ -177,7 +177,7 @@ }, { "cell_type": "markdown", - "id": "5c4e0b8c", + "id": "3b3ac4d2", "metadata": { "editable": true }, @@ -205,7 +205,7 @@ }, { "cell_type": "markdown", - "id": "cabba75a", + "id": "c98a488d", "metadata": { "editable": true }, @@ -223,7 +223,7 @@ }, { "cell_type": "markdown", - "id": "2240bbaf", + "id": "8bd55d29", "metadata": { "editable": true }, @@ -240,7 +240,7 @@ }, { "cell_type": "markdown", - "id": "e11266d3", + "id": "ff004362", "metadata": { "editable": true }, @@ -264,7 +264,7 @@ }, { "cell_type": "markdown", - "id": "2f254181", + "id": "dc1e0ada", "metadata": { "editable": true }, @@ -276,7 +276,7 @@ }, { "cell_type": "markdown", - "id": "a482f843", + "id": "2c27fef6", "metadata": { "editable": true }, @@ -296,7 +296,7 @@ }, { "cell_type": "markdown", - "id": "1bfd35e8", + "id": "9b95a77b", "metadata": { "editable": true }, @@ -314,7 +314,7 @@ }, { "cell_type": "markdown", - "id": "d28f3b65", + "id": "40dfedc0", "metadata": { "editable": true }, @@ -339,7 +339,7 @@ }, { "cell_type": "markdown", - "id": "1dd7eba4", + "id": "e3e88448", "metadata": { "editable": true }, @@ -361,7 +361,7 @@ }, { "cell_type": "markdown", - "id": "f65d481e", + "id": "b6180e4d", "metadata": { "editable": true }, @@ -385,7 +385,7 @@ }, { "cell_type": "markdown", - "id": "860d45f1", + "id": "5a6d7473", "metadata": { "editable": true }, @@ -401,7 +401,7 @@ }, { "cell_type": "markdown", - "id": "8643a8e4", + "id": "8d5bc22f", "metadata": { "editable": true }, @@ -423,7 +423,7 @@ }, { "cell_type": "markdown", - "id": "883a32ab", + "id": "9f5ffd20", "metadata": { "editable": true }, @@ -441,7 +441,7 @@ }, { "cell_type": "markdown", - "id": "c36dca74", + "id": "b4ca04fe", "metadata": { "editable": true }, @@ -471,7 +471,7 @@ }, { "cell_type": "markdown", - "id": "3331f004", + "id": "c1f93b8a", "metadata": { "editable": true }, @@ -500,7 +500,7 @@ }, { "cell_type": "markdown", - "id": "9805129a", + "id": "7d5e895c", "metadata": { "editable": true }, @@ -518,7 +518,7 @@ }, { "cell_type": "markdown", - "id": "b6ce1fec", + "id": "d4959411", "metadata": { "editable": true }, @@ -530,7 +530,7 @@ }, { "cell_type": "markdown", - "id": "c3f855e6", + "id": "d88e8937", "metadata": { "editable": true }, @@ -565,7 +565,7 @@ }, { "cell_type": "markdown", - "id": "db7df58f", + "id": "4f31ca57", "metadata": { "editable": true }, @@ -595,7 +595,7 @@ }, { "cell_type": "markdown", - "id": "eae43d45", + "id": "6ab2b818", "metadata": { "editable": true }, @@ -626,7 +626,7 @@ }, { "cell_type": "markdown", - "id": "a14136b8", + "id": "4cca3e62", "metadata": { "editable": true }, @@ -665,7 +665,7 @@ }, { "cell_type": "markdown", - "id": "43ad2d3a", + "id": "848f89b3", "metadata": { "editable": true }, @@ -698,7 +698,7 @@ }, { "cell_type": "markdown", - "id": "260fc4f1", + "id": "30bb69ca", "metadata": { "editable": true }, @@ -735,7 +735,7 @@ }, { "cell_type": "markdown", - "id": "d79f5c48", + "id": "a77a9aae", "metadata": { "editable": true }, @@ -759,7 +759,7 @@ }, { "cell_type": "markdown", - "id": "14668766", + "id": "aaeda8ee", "metadata": { "editable": true }, @@ -786,7 +786,7 @@ }, { "cell_type": "markdown", - "id": "158a0a2b", + "id": "2ad20fcd", "metadata": { "editable": true }, @@ -796,7 +796,7 @@ }, { "cell_type": "markdown", - "id": "8ff2bfbf", + "id": "3cc76f8f", "metadata": { "editable": true }, @@ -808,7 +808,7 @@ }, { "cell_type": "markdown", - "id": "336a64f4", + "id": "9186c180", "metadata": { "editable": true }, @@ -829,7 +829,7 @@ }, { "cell_type": "markdown", - "id": "53d76bcf", + "id": "fbe7f0de", "metadata": { "editable": true }, @@ -841,7 +841,7 @@ { "cell_type": "code", "execution_count": 1, - "id": "c8cbf8e5", + "id": "f4ba7a28", "metadata": { "collapsed": false, "editable": true @@ -853,7 +853,7 @@ }, { "cell_type": "markdown", - "id": "2544ec17", + "id": "0f92ea37", "metadata": { "editable": true }, @@ -864,7 +864,7 @@ { "cell_type": "code", "execution_count": 2, - "id": "e6fed93a", + "id": "e7a41329", "metadata": { "collapsed": false, "editable": true @@ -878,7 +878,7 @@ }, { "cell_type": "markdown", - "id": "671ec8e4", + "id": "269bd917", "metadata": { "editable": true }, @@ -890,7 +890,7 @@ { "cell_type": "code", "execution_count": 3, - "id": "03351553", + "id": "a44ab51e", "metadata": { "collapsed": false, "editable": true @@ -904,7 +904,7 @@ }, { "cell_type": "markdown", - "id": "ab7b4a4f", + "id": "3365c5f4", "metadata": { "editable": true }, @@ -916,7 +916,7 @@ { "cell_type": "code", "execution_count": 4, - "id": "7d547fee", + "id": "e7fe287c", "metadata": { "collapsed": false, "editable": true @@ -930,7 +930,7 @@ }, { "cell_type": "markdown", - "id": "fa3d6630", + "id": "edbfa557", "metadata": { "editable": true }, @@ -947,7 +947,7 @@ { "cell_type": "code", "execution_count": 5, - "id": "a1410010", + "id": "66aa46db", "metadata": { "collapsed": false, "editable": true @@ -964,7 +964,7 @@ }, { "cell_type": "markdown", - "id": "1fcdba92", + "id": "618daef7", "metadata": { "editable": true }, @@ -976,7 +976,7 @@ { "cell_type": "code", "execution_count": 6, - "id": "b2baed9c", + "id": "30378e7d", "metadata": { "collapsed": false, "editable": true @@ -990,7 +990,7 @@ }, { "cell_type": "markdown", - "id": "341fe975", + "id": "75ecd295", "metadata": { "editable": true }, @@ -1001,7 +1001,7 @@ { "cell_type": "code", "execution_count": 7, - "id": "4c81d6d8", + "id": "3be0e9f1", "metadata": { "collapsed": false, "editable": true @@ -1015,7 +1015,7 @@ }, { "cell_type": "markdown", - "id": "b606be11", + "id": "34db27b7", "metadata": { "editable": true }, @@ -1026,7 +1026,7 @@ { "cell_type": "code", "execution_count": 8, - "id": "dc5f484b", + "id": "a7f623de", "metadata": { "collapsed": false, "editable": true @@ -1040,7 +1040,7 @@ }, { "cell_type": "markdown", - "id": "2ee4fd88", + "id": "74aa5734", "metadata": { "editable": true }, @@ -1055,7 +1055,7 @@ { "cell_type": "code", "execution_count": 9, - "id": "f54969e9", + "id": "511aad98", "metadata": { "collapsed": false, "editable": true @@ -1069,7 +1069,7 @@ }, { "cell_type": "markdown", - "id": "3ffdc5bb", + "id": "1b13f1f5", "metadata": { "editable": true }, @@ -1080,7 +1080,7 @@ { "cell_type": "code", "execution_count": 10, - "id": "c517dc95", + "id": "727497fc", "metadata": { "collapsed": false, "editable": true @@ -1095,7 +1095,7 @@ }, { "cell_type": "markdown", - "id": "1aced303", + "id": "5340edcf", "metadata": { "editable": true }, @@ -1106,7 +1106,7 @@ { "cell_type": "code", "execution_count": 11, - "id": "32efbfb2", + "id": "b02f087b", "metadata": { "collapsed": false, "editable": true @@ -1121,7 +1121,7 @@ }, { "cell_type": "markdown", - "id": "a95e02fd", + "id": "08a1816a", "metadata": { "editable": true }, @@ -1132,7 +1132,7 @@ { "cell_type": "code", "execution_count": 12, - "id": "fcebfe97", + "id": "65630355", "metadata": { "collapsed": false, "editable": true @@ -1148,7 +1148,7 @@ }, { "cell_type": "markdown", - "id": "5d767b5d", + "id": "2d900153", "metadata": { "editable": true }, @@ -1159,7 +1159,7 @@ { "cell_type": "code", "execution_count": 13, - "id": "8c8edcaf", + "id": "eb73a41d", "metadata": { "collapsed": false, "editable": true @@ -1175,7 +1175,7 @@ }, { "cell_type": "markdown", - "id": "1365ca9a", + "id": "475d032f", "metadata": { "editable": true }, @@ -1186,7 +1186,7 @@ { "cell_type": "code", "execution_count": 14, - "id": "85c9a904", + "id": "75e1338a", "metadata": { "collapsed": false, "editable": true @@ -1202,7 +1202,7 @@ }, { "cell_type": "markdown", - "id": "15700c5c", + "id": "569d5c0b", "metadata": { "editable": true }, @@ -1214,7 +1214,7 @@ }, { "cell_type": "markdown", - "id": "d5d413f6", + "id": "7843e50f", "metadata": { "editable": true }, @@ -1229,7 +1229,7 @@ }, { "cell_type": "markdown", - "id": "81f680dd", + "id": "644713ca", "metadata": { "editable": true }, @@ -1239,7 +1239,7 @@ }, { "cell_type": "markdown", - "id": "17c5a1bf", + "id": "416f7608", "metadata": { "editable": true }, @@ -1251,7 +1251,7 @@ }, { "cell_type": "markdown", - "id": "55a9b83d", + "id": "4219192a", "metadata": { "editable": true }, @@ -1262,7 +1262,7 @@ }, { "cell_type": "markdown", - "id": "0929cae0", + "id": "4f5643f8", "metadata": { "editable": true }, @@ -1277,7 +1277,7 @@ }, { "cell_type": "markdown", - "id": "f3181ff4", + "id": "f6584cf1", "metadata": { "editable": true }, @@ -1292,7 +1292,7 @@ { "cell_type": "code", "execution_count": 15, - "id": "6c2c0ee5", + "id": "75602f0d", "metadata": { "collapsed": false, "editable": true @@ -1319,7 +1319,7 @@ { "cell_type": "code", "execution_count": 16, - "id": "cbe79e57", + "id": "5ad697d4", "metadata": { "collapsed": false, "editable": true @@ -1343,7 +1343,7 @@ }, { "cell_type": "markdown", - "id": "f23e1ca6", + "id": "032b26ff", "metadata": { "editable": true }, @@ -1369,7 +1369,7 @@ { "cell_type": "code", "execution_count": 17, - "id": "8789f2ba", + "id": "a787e973", "metadata": { "collapsed": false, "editable": true @@ -1389,7 +1389,7 @@ }, { "cell_type": "markdown", - "id": "e9f51a5f", + "id": "3e2f2ba0", "metadata": { "editable": true }, @@ -1403,7 +1403,7 @@ { "cell_type": "code", "execution_count": 18, - "id": "16b329b9", + "id": "a6e39994", "metadata": { "collapsed": false, "editable": true @@ -1416,7 +1416,7 @@ }, { "cell_type": "markdown", - "id": "cd1876fb", + "id": "8ffd3842", "metadata": { "editable": true }, @@ -1427,7 +1427,7 @@ { "cell_type": "code", "execution_count": 19, - "id": "5b7e1c04", + "id": "b3814c6d", "metadata": { "collapsed": false, "editable": true @@ -1439,7 +1439,7 @@ }, { "cell_type": "markdown", - "id": "10f0bb9d", + "id": "35bafbd2", "metadata": { "editable": true }, @@ -1450,7 +1450,7 @@ { "cell_type": "code", "execution_count": 20, - "id": "190b1a89", + "id": "8db7bed6", "metadata": { "collapsed": false, "editable": true @@ -1468,7 +1468,7 @@ }, { "cell_type": "markdown", - "id": "579fb43e", + "id": "d9385413", "metadata": { "editable": true }, @@ -1480,7 +1480,7 @@ { "cell_type": "code", "execution_count": 21, - "id": "cb5f7e36", + "id": "6dce18c2", "metadata": { "collapsed": false, "editable": true @@ -1504,7 +1504,7 @@ }, { "cell_type": "markdown", - "id": "51e35da5", + "id": "97d91af7", "metadata": { "editable": true }, @@ -1515,7 +1515,7 @@ { "cell_type": "code", "execution_count": 22, - "id": "6754efdc", + "id": "e0dca4c1", "metadata": { "collapsed": false, "editable": true @@ -1544,7 +1544,7 @@ }, { "cell_type": "markdown", - "id": "f1750baf", + "id": "cdc2ab8a", "metadata": { "editable": true }, @@ -1555,7 +1555,7 @@ { "cell_type": "code", "execution_count": 23, - "id": "4069afcc", + "id": "36ae1ade", "metadata": { "collapsed": false, "editable": true @@ -1570,7 +1570,7 @@ }, { "cell_type": "markdown", - "id": "dc04e1ff", + "id": "c140669f", "metadata": { "editable": true }, @@ -1587,7 +1587,19 @@ }, { "cell_type": "markdown", - "id": "ff884c05", + "id": "d458b4bc", + "metadata": { + "editable": true + }, + "source": [ + "## Pandas AI\n", + "\n", + "Try out [Pandas AI](https://pandas-ai.com/)" + ] + }, + { + "cell_type": "markdown", + "id": "f9520546", "metadata": { "editable": true }, @@ -1618,7 +1630,7 @@ }, { "cell_type": "markdown", - "id": "10424430", + "id": "77976987", "metadata": { "editable": true }, @@ -1630,7 +1642,7 @@ }, { "cell_type": "markdown", - "id": "d4456d18", + "id": "8ac95ae4", "metadata": { "editable": true }, @@ -1658,7 +1670,7 @@ { "cell_type": "code", "execution_count": 24, - "id": "570b320d", + "id": "3327deec", "metadata": { "collapsed": false, "editable": true @@ -1688,7 +1700,7 @@ }, { "cell_type": "markdown", - "id": "a6e493ad", + "id": "8e39785b", "metadata": { "editable": true }, @@ -1705,7 +1717,7 @@ }, { "cell_type": "markdown", - "id": "8f1725d2", + "id": "2a78a280", "metadata": { "editable": true }, @@ -1717,7 +1729,7 @@ }, { "cell_type": "markdown", - "id": "8df5914b", + "id": "c4864965", "metadata": { "editable": true }, @@ -1738,7 +1750,7 @@ }, { "cell_type": "markdown", - "id": "7648e110", + "id": "5c0838b1", "metadata": { "editable": true }, @@ -1751,7 +1763,7 @@ }, { "cell_type": "markdown", - "id": "17c3f9d8", + "id": "02383309", "metadata": { "editable": true }, @@ -1782,7 +1794,7 @@ }, { "cell_type": "markdown", - "id": "0cb0e3fa", + "id": "eac58725", "metadata": { "editable": true }, @@ -1794,7 +1806,7 @@ }, { "cell_type": "markdown", - "id": "00fe7e8c", + "id": "827e0ed3", "metadata": { "editable": true }, @@ -1812,7 +1824,7 @@ { "cell_type": "code", "execution_count": 25, - "id": "7a17d6fe", + "id": "8f20f97a", "metadata": { "collapsed": false, "editable": true @@ -1839,7 +1851,7 @@ }, { "cell_type": "markdown", - "id": "8f557979", + "id": "40e0f1fb", "metadata": { "editable": true }, @@ -1861,7 +1873,7 @@ { "cell_type": "code", "execution_count": 26, - "id": "a5e9ee5a", + "id": "85fe3b38", "metadata": { "collapsed": false, "editable": true @@ -1899,7 +1911,7 @@ }, { "cell_type": "markdown", - "id": "a2b45b0b", + "id": "c5340def", "metadata": { "editable": true }, @@ -1910,7 +1922,7 @@ }, { "cell_type": "markdown", - "id": "97da0991", + "id": "83e89ce5", "metadata": { "editable": true }, @@ -1923,7 +1935,7 @@ }, { "cell_type": "markdown", - "id": "6664f912", + "id": "05a2a70c", "metadata": { "editable": true }, @@ -1944,7 +1956,7 @@ }, { "cell_type": "markdown", - "id": "4ca74414", + "id": "edfe1145", "metadata": { "editable": true }, @@ -1956,7 +1968,7 @@ }, { "cell_type": "markdown", - "id": "9e1d8766", + "id": "b63b854d", "metadata": { "editable": true }, @@ -1966,7 +1978,7 @@ }, { "cell_type": "markdown", - "id": "4605a6c5", + "id": "b72ca737", "metadata": { "editable": true }, @@ -1978,7 +1990,7 @@ }, { "cell_type": "markdown", - "id": "882cab00", + "id": "da0dd094", "metadata": { "editable": true }, @@ -1990,7 +2002,7 @@ }, { "cell_type": "markdown", - "id": "7d365176", + "id": "55ad6e1f", "metadata": { "editable": true }, @@ -2002,7 +2014,7 @@ }, { "cell_type": "markdown", - "id": "ed69759f", + "id": "307edc23", "metadata": { "editable": true }, @@ -2013,7 +2025,7 @@ }, { "cell_type": "markdown", - "id": "33745626", + "id": "ddcee8d8", "metadata": { "editable": true }, @@ -2025,7 +2037,7 @@ }, { "cell_type": "markdown", - "id": "049e0384", + "id": "a4aa116d", "metadata": { "editable": true }, @@ -2047,7 +2059,7 @@ }, { "cell_type": "markdown", - "id": "5a9fe56d", + "id": "91b0a8f6", "metadata": { "editable": true }, @@ -2059,7 +2071,7 @@ }, { "cell_type": "markdown", - "id": "be3f1edc", + "id": "6a89433e", "metadata": { "editable": true }, @@ -2072,7 +2084,7 @@ }, { "cell_type": "markdown", - "id": "39a78b9e", + "id": "8e9db463", "metadata": { "editable": true }, @@ -2089,7 +2101,7 @@ }, { "cell_type": "markdown", - "id": "8c035b2b", + "id": "322bc071", "metadata": { "editable": true }, @@ -2101,7 +2113,7 @@ }, { "cell_type": "markdown", - "id": "12c6c509", + "id": "02864f30", "metadata": { "editable": true }, @@ -2111,7 +2123,7 @@ }, { "cell_type": "markdown", - "id": "81cb4b33", + "id": "75d42c9b", "metadata": { "editable": true }, @@ -2123,7 +2135,7 @@ }, { "cell_type": "markdown", - "id": "f1aec311", + "id": "9cd70ab7", "metadata": { "editable": true }, @@ -2133,7 +2145,7 @@ }, { "cell_type": "markdown", - "id": "3f4f90ea", + "id": "b10d687a", "metadata": { "editable": true }, @@ -2145,7 +2157,7 @@ }, { "cell_type": "markdown", - "id": "5535c1ab", + "id": "fadb16df", "metadata": { "editable": true }, @@ -2155,7 +2167,7 @@ }, { "cell_type": "markdown", - "id": "b3efd5ad", + "id": "a784290a", "metadata": { "editable": true }, @@ -2167,7 +2179,7 @@ }, { "cell_type": "markdown", - "id": "a6d81840", + "id": "0eac8891", "metadata": { "editable": true }, @@ -2183,7 +2195,7 @@ }, { "cell_type": "markdown", - "id": "f69f2188", + "id": "7e0f7c9c", "metadata": { "editable": true }, @@ -2195,7 +2207,7 @@ }, { "cell_type": "markdown", - "id": "cf70b128", + "id": "2cb53b2f", "metadata": { "editable": true }, @@ -2206,7 +2218,7 @@ }, { "cell_type": "markdown", - "id": "4bfa00ef", + "id": "baad681e", "metadata": { "editable": true }, @@ -2218,7 +2230,7 @@ }, { "cell_type": "markdown", - "id": "4750b7cb", + "id": "14445fea", "metadata": { "editable": true }, @@ -2232,7 +2244,7 @@ }, { "cell_type": "markdown", - "id": "cc94773e", + "id": "24e60de2", "metadata": { "editable": true }, @@ -2244,7 +2256,7 @@ }, { "cell_type": "markdown", - "id": "48a29815", + "id": "32c6b631", "metadata": { "editable": true }, @@ -2269,7 +2281,7 @@ }, { "cell_type": "markdown", - "id": "2be22cb2", + "id": "7f3d9e7f", "metadata": { "editable": true }, @@ -2286,7 +2298,7 @@ { "cell_type": "code", "execution_count": 27, - "id": "57ce58c1", + "id": "efbc8ac7", "metadata": { "collapsed": false, "editable": true @@ -2330,7 +2342,7 @@ }, { "cell_type": "markdown", - "id": "856d936e", + "id": "06c59468", "metadata": { "editable": true }, @@ -2341,7 +2353,7 @@ { "cell_type": "code", "execution_count": 28, - "id": "f00c1cc8", + "id": "0ae452a1", "metadata": { "collapsed": false, "editable": true @@ -2363,7 +2375,7 @@ }, { "cell_type": "markdown", - "id": "01f32685", + "id": "f2d085b5", "metadata": { "editable": true }, @@ -2380,7 +2392,7 @@ { "cell_type": "code", "execution_count": 29, - "id": "c00626c0", + "id": "dc9112d2", "metadata": { "collapsed": false, "editable": true @@ -2401,7 +2413,7 @@ }, { "cell_type": "markdown", - "id": "e3ac89b4", + "id": "04be6a67", "metadata": { "editable": true }, @@ -2415,7 +2427,7 @@ { "cell_type": "code", "execution_count": 30, - "id": "292ced26", + "id": "23c26038", "metadata": { "collapsed": false, "editable": true @@ -2444,7 +2456,7 @@ }, { "cell_type": "markdown", - "id": "b21b5f18", + "id": "e16c91b9", "metadata": { "editable": true }, @@ -2464,7 +2476,7 @@ { "cell_type": "code", "execution_count": 31, - "id": "18c931f7", + "id": "3a3bf27b", "metadata": { "collapsed": false, "editable": true @@ -2481,7 +2493,7 @@ }, { "cell_type": "markdown", - "id": "bf1a1139", + "id": "5aa20571", "metadata": { "editable": true }, @@ -2493,7 +2505,7 @@ { "cell_type": "code", "execution_count": 32, - "id": "0c1a4a2d", + "id": "e5b9778b", "metadata": { "collapsed": false, "editable": true @@ -2511,7 +2523,7 @@ }, { "cell_type": "markdown", - "id": "b1b537e6", + "id": "49d1f04a", "metadata": { "editable": true }, @@ -2522,7 +2534,7 @@ { "cell_type": "code", "execution_count": 33, - "id": "ef679107", + "id": "3b1fda0f", "metadata": { "collapsed": false, "editable": true @@ -2535,7 +2547,7 @@ }, { "cell_type": "markdown", - "id": "718927c7", + "id": "e74de2ae", "metadata": { "editable": true }, @@ -2547,7 +2559,7 @@ { "cell_type": "code", "execution_count": 34, - "id": "ea124a61", + "id": "61296632", "metadata": { "collapsed": false, "editable": true @@ -2578,7 +2590,7 @@ }, { "cell_type": "markdown", - "id": "9b3a0eeb", + "id": "5ed4fbbc", "metadata": { "editable": true }, @@ -2592,7 +2604,7 @@ { "cell_type": "code", "execution_count": 35, - "id": "1994899a", + "id": "a8ea26ad", "metadata": { "collapsed": false, "editable": true @@ -2637,7 +2649,7 @@ }, { "cell_type": "markdown", - "id": "7373ec03", + "id": "37036c7b", "metadata": { "editable": true }, @@ -2657,7 +2669,7 @@ }, { "cell_type": "markdown", - "id": "d6bf1bf5", + "id": "e8cdcf9c", "metadata": { "editable": true }, @@ -2689,7 +2701,7 @@ }, { "cell_type": "markdown", - "id": "accb159e", + "id": "e61fc5f7", "metadata": { "editable": true }, @@ -2711,7 +2723,7 @@ }, { "cell_type": "markdown", - "id": "a92a5e51", + "id": "b9c9eab9", "metadata": { "editable": true }, @@ -2739,7 +2751,7 @@ }, { "cell_type": "markdown", - "id": "5ae65ed4", + "id": "2897f610", "metadata": { "editable": true }, @@ -2754,7 +2766,7 @@ }, { "cell_type": "markdown", - "id": "687ef539", + "id": "7fd627a1", "metadata": { "editable": true }, @@ -2766,7 +2778,7 @@ }, { "cell_type": "markdown", - "id": "9aeee4e8", + "id": "b62ab8c7", "metadata": { "editable": true }, @@ -2781,7 +2793,7 @@ }, { "cell_type": "markdown", - "id": "b387637a", + "id": "63f8c4ca", "metadata": { "editable": true }, @@ -2794,7 +2806,7 @@ }, { "cell_type": "markdown", - "id": "ea565ad3", + "id": "fa8ced7c", "metadata": { "editable": true }, @@ -2806,7 +2818,7 @@ }, { "cell_type": "markdown", - "id": "3dc47fc2", + "id": "e775cf69", "metadata": { "editable": true }, @@ -2816,7 +2828,7 @@ }, { "cell_type": "markdown", - "id": "00ea18d8", + "id": "e9021bcb", "metadata": { "editable": true }, @@ -2827,7 +2839,7 @@ }, { "cell_type": "markdown", - "id": "7a125f42", + "id": "3dfca0e1", "metadata": { "editable": true }, @@ -2845,7 +2857,7 @@ }, { "cell_type": "markdown", - "id": "6709a1b0", + "id": "d7dc17c7", "metadata": { "editable": true }, @@ -2856,7 +2868,7 @@ }, { "cell_type": "markdown", - "id": "3428c3a8", + "id": "0c4a0198", "metadata": { "editable": true }, @@ -2868,7 +2880,7 @@ }, { "cell_type": "markdown", - "id": "95c50e90", + "id": "60bc7c9b", "metadata": { "editable": true }, @@ -2878,7 +2890,7 @@ }, { "cell_type": "markdown", - "id": "3da4b4ce", + "id": "4b1f2bbf", "metadata": { "editable": true }, @@ -2890,7 +2902,7 @@ }, { "cell_type": "markdown", - "id": "4ba0a0a9", + "id": "46f9701c", "metadata": { "editable": true }, @@ -2900,7 +2912,7 @@ }, { "cell_type": "markdown", - "id": "aafd46bd", + "id": "c5245bf6", "metadata": { "editable": true }, @@ -2912,7 +2924,7 @@ }, { "cell_type": "markdown", - "id": "c45d88f2", + "id": "f6c9d732", "metadata": { "editable": true }, @@ -2922,7 +2934,7 @@ }, { "cell_type": "markdown", - "id": "652c12db", + "id": "26e9e345", "metadata": { "editable": true }, @@ -2941,7 +2953,7 @@ }, { "cell_type": "markdown", - "id": "287eebdf", + "id": "298a04a5", "metadata": { "editable": true }, @@ -2951,7 +2963,7 @@ }, { "cell_type": "markdown", - "id": "37400e70", + "id": "b1f251cf", "metadata": { "editable": true }, @@ -2963,7 +2975,7 @@ }, { "cell_type": "markdown", - "id": "bcef14c0", + "id": "5ce82275", "metadata": { "editable": true }, @@ -2973,7 +2985,7 @@ }, { "cell_type": "markdown", - "id": "8e755bfd", + "id": "39b1c23a", "metadata": { "editable": true }, @@ -2989,7 +3001,7 @@ }, { "cell_type": "markdown", - "id": "bf603c75", + "id": "fe707681", "metadata": { "editable": true }, @@ -3009,7 +3021,7 @@ }, { "cell_type": "markdown", - "id": "42abb005", + "id": "fef248b2", "metadata": { "editable": true }, @@ -3019,7 +3031,7 @@ }, { "cell_type": "markdown", - "id": "f79e2da7", + "id": "b8239056", "metadata": { "editable": true }, @@ -3030,7 +3042,7 @@ }, { "cell_type": "markdown", - "id": "7a0b3900", + "id": "b8d8b1e7", "metadata": { "editable": true }, @@ -3049,7 +3061,7 @@ }, { "cell_type": "markdown", - "id": "7322cacc", + "id": "d6ab5053", "metadata": { "editable": true }, @@ -3059,7 +3071,7 @@ }, { "cell_type": "markdown", - "id": "1a10a334", + "id": "d5a1a4be", "metadata": { "editable": true }, @@ -3071,7 +3083,7 @@ }, { "cell_type": "markdown", - "id": "ec1915c1", + "id": "17fbd184", "metadata": { "editable": true }, @@ -3081,7 +3093,7 @@ }, { "cell_type": "markdown", - "id": "c4fe6000", + "id": "75f430d1", "metadata": { "editable": true }, @@ -3092,7 +3104,7 @@ }, { "cell_type": "markdown", - "id": "41a78ecd", + "id": "e33f6d7e", "metadata": { "editable": true }, @@ -3112,7 +3124,7 @@ }, { "cell_type": "markdown", - "id": "d9184930", + "id": "d65e3d00", "metadata": { "editable": true }, @@ -3124,7 +3136,7 @@ }, { "cell_type": "markdown", - "id": "336efd0e", + "id": "8a93ab5b", "metadata": { "editable": true }, @@ -3139,7 +3151,7 @@ { "cell_type": "code", "execution_count": 36, - "id": "d7f7ee11", + "id": "a101fe72", "metadata": { "collapsed": false, "editable": true @@ -3219,7 +3231,7 @@ }, { "cell_type": "markdown", - "id": "06b3c778", + "id": "5092723e", "metadata": { "editable": true }, @@ -3229,7 +3241,7 @@ }, { "cell_type": "markdown", - "id": "7fd7f1a9", + "id": "4f274a13", "metadata": { "editable": true }, @@ -3241,7 +3253,7 @@ }, { "cell_type": "markdown", - "id": "7a7d6f60", + "id": "c1597b61", "metadata": { "editable": true }, @@ -3251,7 +3263,7 @@ }, { "cell_type": "markdown", - "id": "dcf4259b", + "id": "510eda7d", "metadata": { "editable": true }, @@ -3262,7 +3274,7 @@ }, { "cell_type": "markdown", - "id": "56e2c7b1", + "id": "e04087f8", "metadata": { "editable": true }, @@ -3274,7 +3286,7 @@ }, { "cell_type": "markdown", - "id": "83f24da1", + "id": "e4a6ff11", "metadata": { "editable": true }, @@ -3284,7 +3296,7 @@ }, { "cell_type": "markdown", - "id": "3e072e07", + "id": "65ebba11", "metadata": { "editable": true }, @@ -3296,7 +3308,7 @@ }, { "cell_type": "markdown", - "id": "ebb98625", + "id": "f5407aa5", "metadata": { "editable": true }, @@ -3306,7 +3318,7 @@ }, { "cell_type": "markdown", - "id": "2208961c", + "id": "3eb3ac09", "metadata": { "editable": true }, @@ -3318,7 +3330,7 @@ }, { "cell_type": "markdown", - "id": "9fe2fec2", + "id": "4948a093", "metadata": { "editable": true }, @@ -3331,7 +3343,7 @@ }, { "cell_type": "markdown", - "id": "2469ff5a", + "id": "dbf202fc", "metadata": { "editable": true }, @@ -3343,7 +3355,7 @@ }, { "cell_type": "markdown", - "id": "78c3608b", + "id": "4ec3525e", "metadata": { "editable": true }, @@ -3353,7 +3365,7 @@ }, { "cell_type": "markdown", - "id": "724d699f", + "id": "5dcb6438", "metadata": { "editable": true }, @@ -3365,7 +3377,7 @@ }, { "cell_type": "markdown", - "id": "c81e30d6", + "id": "f8f9b4d6", "metadata": { "editable": true }, @@ -3377,7 +3389,7 @@ }, { "cell_type": "markdown", - "id": "b7539680", + "id": "7c4159f3", "metadata": { "editable": true }, @@ -3388,7 +3400,7 @@ }, { "cell_type": "markdown", - "id": "35bef2fb", + "id": "e57a1702", "metadata": { "editable": true }, @@ -3400,7 +3412,7 @@ }, { "cell_type": "markdown", - "id": "c9ba75f2", + "id": "e01c891e", "metadata": { "editable": true }, @@ -3419,7 +3431,7 @@ }, { "cell_type": "markdown", - "id": "0de9cf54", + "id": "5623f65f", "metadata": { "editable": true }, @@ -3432,7 +3444,7 @@ }, { "cell_type": "markdown", - "id": "c29fc4c3", + "id": "9d395c79", "metadata": { "editable": true }, @@ -3442,7 +3454,7 @@ }, { "cell_type": "markdown", - "id": "806f82d4", + "id": "6afb3c3e", "metadata": { "editable": true }, @@ -3454,7 +3466,7 @@ }, { "cell_type": "markdown", - "id": "7101ec03", + "id": "a48cc207", "metadata": { "editable": true }, @@ -3464,7 +3476,7 @@ }, { "cell_type": "markdown", - "id": "e3c91e71", + "id": "11abf336", "metadata": { "editable": true }, @@ -3476,7 +3488,7 @@ }, { "cell_type": "markdown", - "id": "28859238", + "id": "ad441456", "metadata": { "editable": true }, @@ -3486,7 +3498,7 @@ }, { "cell_type": "markdown", - "id": "412d7d97", + "id": "9d5471c2", "metadata": { "editable": true }, @@ -3498,7 +3510,7 @@ }, { "cell_type": "markdown", - "id": "a2d6e61f", + "id": "f1267199", "metadata": { "editable": true }, @@ -3509,7 +3521,7 @@ }, { "cell_type": "markdown", - "id": "3aab18ca", + "id": "712bc3d4", "metadata": { "editable": true }, @@ -3521,7 +3533,7 @@ }, { "cell_type": "markdown", - "id": "a5d3d3d4", + "id": "e5ae3ee2", "metadata": { "editable": true }, @@ -3531,7 +3543,7 @@ }, { "cell_type": "markdown", - "id": "6bc87ffc", + "id": "c3957c60", "metadata": { "editable": true }, @@ -3543,7 +3555,7 @@ }, { "cell_type": "markdown", - "id": "e6d26432", + "id": "2104ba73", "metadata": { "editable": true }, @@ -3553,7 +3565,7 @@ }, { "cell_type": "markdown", - "id": "68315dcb", + "id": "13616744", "metadata": { "editable": true }, @@ -3565,7 +3577,7 @@ }, { "cell_type": "markdown", - "id": "251e4b2e", + "id": "7123c0b3", "metadata": { "editable": true }, @@ -3586,21 +3598,7 @@ }, { "cell_type": "markdown", - "id": "485307ed", - "metadata": { - "editable": true - }, - "source": [ - "## Some useful matrix and vector expressions\n", - "\n", - "See the handwritten notes at \n", - "\n", - "These notes will be discussed during one of the lectures." - ] - }, - { - "cell_type": "markdown", - "id": "9a1d8612", + "id": "ca00624d", "metadata": { "editable": true }, @@ -3611,7 +3609,7 @@ }, { "cell_type": "markdown", - "id": "b053306a", + "id": "be062840", "metadata": { "editable": true }, @@ -3623,7 +3621,7 @@ }, { "cell_type": "markdown", - "id": "6509f810", + "id": "1b91f21b", "metadata": { "editable": true }, @@ -3633,7 +3631,7 @@ }, { "cell_type": "markdown", - "id": "5f2b6cfb", + "id": "99760cdd", "metadata": { "editable": true }, @@ -3645,7 +3643,7 @@ }, { "cell_type": "markdown", - "id": "d68edc03", + "id": "b1092a73", "metadata": { "editable": true }, @@ -3655,7 +3653,7 @@ }, { "cell_type": "markdown", - "id": "e592d409", + "id": "9340bc33", "metadata": { "editable": true }, @@ -3667,7 +3665,7 @@ }, { "cell_type": "markdown", - "id": "402a8712", + "id": "5155277d", "metadata": { "editable": true }, @@ -3679,7 +3677,7 @@ }, { "cell_type": "markdown", - "id": "3297371d", + "id": "d198a040", "metadata": { "editable": true }, @@ -3693,7 +3691,7 @@ { "cell_type": "code", "execution_count": 37, - "id": "87fb9b2a", + "id": "1fd1c624", "metadata": { "collapsed": false, "editable": true @@ -3708,7 +3706,7 @@ }, { "cell_type": "markdown", - "id": "ee24edc8", + "id": "0334c969", "metadata": { "editable": true }, @@ -3719,7 +3717,7 @@ { "cell_type": "code", "execution_count": 38, - "id": "f3f9658c", + "id": "ee65f2c6", "metadata": { "collapsed": false, "editable": true @@ -3732,7 +3730,7 @@ }, { "cell_type": "markdown", - "id": "b4ed34de", + "id": "6a90caab", "metadata": { "editable": true }, @@ -3743,7 +3741,7 @@ { "cell_type": "code", "execution_count": 39, - "id": "609abf77", + "id": "be846d9c", "metadata": { "collapsed": false, "editable": true @@ -3766,7 +3764,7 @@ }, { "cell_type": "markdown", - "id": "7f3cfe27", + "id": "186d4dfc", "metadata": { "editable": true }, @@ -3780,7 +3778,7 @@ { "cell_type": "code", "execution_count": 40, - "id": "c825f110", + "id": "6de9e6a2", "metadata": { "collapsed": false, "editable": true @@ -3793,7 +3791,7 @@ }, { "cell_type": "markdown", - "id": "127f753b", + "id": "d416f1dc", "metadata": { "editable": true }, @@ -3804,7 +3802,7 @@ { "cell_type": "code", "execution_count": 41, - "id": "9002643d", + "id": "c3d5d9a5", "metadata": { "collapsed": false, "editable": true @@ -3816,7 +3814,7 @@ }, { "cell_type": "markdown", - "id": "3c10d523", + "id": "a8793e09", "metadata": { "editable": true }, @@ -3827,7 +3825,7 @@ { "cell_type": "code", "execution_count": 42, - "id": "b0be976a", + "id": "777316e8", "metadata": { "collapsed": false, "editable": true @@ -3843,7 +3841,7 @@ }, { "cell_type": "markdown", - "id": "a3c853fd", + "id": "8395880e", "metadata": { "editable": true }, @@ -3854,7 +3852,7 @@ { "cell_type": "code", "execution_count": 43, - "id": "3e876e46", + "id": "b32c1466", "metadata": { "collapsed": false, "editable": true @@ -3868,7 +3866,7 @@ }, { "cell_type": "markdown", - "id": "8bae9ae0", + "id": "91a8c376", "metadata": { "editable": true }, @@ -3890,7 +3888,7 @@ }, { "cell_type": "markdown", - "id": "e268fe32", + "id": "e9f97232", "metadata": { "editable": true }, @@ -3902,7 +3900,7 @@ }, { "cell_type": "markdown", - "id": "0eb0a0b8", + "id": "6f86f9ff", "metadata": { "editable": true }, @@ -3912,7 +3910,7 @@ }, { "cell_type": "markdown", - "id": "48244140", + "id": "099e318a", "metadata": { "editable": true }, @@ -3924,7 +3922,7 @@ }, { "cell_type": "markdown", - "id": "d285acf3", + "id": "94882de1", "metadata": { "editable": true }, @@ -3936,7 +3934,7 @@ }, { "cell_type": "markdown", - "id": "291407cc", + "id": "4bbe2d6d", "metadata": { "editable": true }, @@ -3946,7 +3944,7 @@ }, { "cell_type": "markdown", - "id": "b80bef46", + "id": "82224549", "metadata": { "editable": true }, @@ -3958,7 +3956,7 @@ }, { "cell_type": "markdown", - "id": "ad91b94e", + "id": "85de5310", "metadata": { "editable": true }, @@ -3968,7 +3966,7 @@ }, { "cell_type": "markdown", - "id": "59d64474", + "id": "0c4e69ee", "metadata": { "editable": true }, @@ -3980,7 +3978,7 @@ }, { "cell_type": "markdown", - "id": "f0f79d1c", + "id": "2cf42150", "metadata": { "editable": true }, @@ -3990,7 +3988,7 @@ }, { "cell_type": "markdown", - "id": "a2c1adbd", + "id": "28d8b572", "metadata": { "editable": true }, @@ -4002,7 +4000,7 @@ }, { "cell_type": "markdown", - "id": "77c55331", + "id": "bd0da12f", "metadata": { "editable": true }, @@ -4014,7 +4012,7 @@ }, { "cell_type": "markdown", - "id": "464518fe", + "id": "79ab73b9", "metadata": { "editable": true }, @@ -4024,7 +4022,7 @@ }, { "cell_type": "markdown", - "id": "7722ff6a", + "id": "1a8223d3", "metadata": { "editable": true }, @@ -4036,7 +4034,7 @@ }, { "cell_type": "markdown", - "id": "17a0a0bf", + "id": "a2f47783", "metadata": { "editable": true }, @@ -4046,7 +4044,7 @@ }, { "cell_type": "markdown", - "id": "db0729e5", + "id": "5e3fb86d", "metadata": { "editable": true }, @@ -4058,7 +4056,7 @@ }, { "cell_type": "markdown", - "id": "a3342e4d", + "id": "fa454a83", "metadata": { "editable": true }, @@ -4070,7 +4068,7 @@ }, { "cell_type": "markdown", - "id": "32797264", + "id": "24add22b", "metadata": { "editable": true }, @@ -4082,7 +4080,7 @@ }, { "cell_type": "markdown", - "id": "6b4fa2ed", + "id": "8dcd4b60", "metadata": { "editable": true }, @@ -4092,7 +4090,7 @@ }, { "cell_type": "markdown", - "id": "91b0f90c", + "id": "8cf096f9", "metadata": { "editable": true }, @@ -4104,7 +4102,7 @@ }, { "cell_type": "markdown", - "id": "1788b899", + "id": "2af41539", "metadata": { "editable": true }, @@ -4114,7 +4112,7 @@ }, { "cell_type": "markdown", - "id": "fbedd864", + "id": "48bc0d81", "metadata": { "editable": true }, @@ -4126,7 +4124,7 @@ }, { "cell_type": "markdown", - "id": "46ced7fc", + "id": "fea98193", "metadata": { "editable": true }, @@ -4136,7 +4134,7 @@ }, { "cell_type": "markdown", - "id": "126581f2", + "id": "d95b3640", "metadata": { "editable": true }, @@ -4148,7 +4146,7 @@ }, { "cell_type": "markdown", - "id": "22263ac1", + "id": "d1749aad", "metadata": { "editable": true }, @@ -4159,7 +4157,7 @@ }, { "cell_type": "markdown", - "id": "d2f1c4bf", + "id": "139a6ebe", "metadata": { "editable": true }, @@ -4171,7 +4169,7 @@ }, { "cell_type": "markdown", - "id": "3c150c12", + "id": "89002f52", "metadata": { "editable": true }, @@ -4181,7 +4179,7 @@ }, { "cell_type": "markdown", - "id": "54c4bd59", + "id": "b9b48df5", "metadata": { "editable": true }, @@ -4193,7 +4191,7 @@ }, { "cell_type": "markdown", - "id": "85450044", + "id": "76413cfe", "metadata": { "editable": true }, @@ -4203,7 +4201,7 @@ }, { "cell_type": "markdown", - "id": "f62678e4", + "id": "21843716", "metadata": { "editable": true }, @@ -4215,7 +4213,7 @@ }, { "cell_type": "markdown", - "id": "06216620", + "id": "5bccb54a", "metadata": { "editable": true }, @@ -4228,7 +4226,7 @@ }, { "cell_type": "markdown", - "id": "48b4d612", + "id": "65141693", "metadata": { "editable": true }, @@ -4240,7 +4238,7 @@ }, { "cell_type": "markdown", - "id": "44fe7e7a", + "id": "67a57b05", "metadata": { "editable": true }, @@ -4252,7 +4250,7 @@ }, { "cell_type": "markdown", - "id": "989f2952", + "id": "4b786ae5", "metadata": { "editable": true }, @@ -4264,7 +4262,7 @@ }, { "cell_type": "markdown", - "id": "0425932f", + "id": "8f90ddfb", "metadata": { "editable": true }, @@ -4276,7 +4274,7 @@ }, { "cell_type": "markdown", - "id": "7f095428", + "id": "669e431f", "metadata": { "editable": true }, @@ -4288,7 +4286,7 @@ }, { "cell_type": "markdown", - "id": "a37ec316", + "id": "7dfd296c", "metadata": { "editable": true }, @@ -4298,7 +4296,7 @@ }, { "cell_type": "markdown", - "id": "05921282", + "id": "1a39204c", "metadata": { "editable": true }, @@ -4310,7 +4308,7 @@ }, { "cell_type": "markdown", - "id": "147b5033", + "id": "61cbc812", "metadata": { "editable": true }, @@ -4322,7 +4320,7 @@ }, { "cell_type": "markdown", - "id": "fe77ebfe", + "id": "6b8648b3", "metadata": { "editable": true }, @@ -4335,7 +4333,7 @@ }, { "cell_type": "markdown", - "id": "2a2e48f9", + "id": "c91f9c88", "metadata": { "editable": true }, @@ -4362,7 +4360,7 @@ }, { "cell_type": "markdown", - "id": "6c8cf2ea", + "id": "3b614967", "metadata": { "editable": true }, @@ -4373,7 +4371,7 @@ { "cell_type": "code", "execution_count": 44, - "id": "4b4b43d0", + "id": "2229e29b", "metadata": { "collapsed": false, "editable": true @@ -4469,7 +4467,7 @@ }, { "cell_type": "markdown", - "id": "e2a451c5", + "id": "51cecbe6", "metadata": { "editable": true }, @@ -4484,7 +4482,7 @@ }, { "cell_type": "markdown", - "id": "b59392e2", + "id": "cb44fadc", "metadata": { "editable": true }, @@ -4506,7 +4504,7 @@ { "cell_type": "code", "execution_count": 45, - "id": "7b909eeb", + "id": "41334dd2", "metadata": { "collapsed": false, "editable": true @@ -4581,7 +4579,7 @@ }, { "cell_type": "markdown", - "id": "bec3ce40", + "id": "cc28353d", "metadata": { "editable": true }, @@ -4593,7 +4591,7 @@ }, { "cell_type": "markdown", - "id": "a321d502", + "id": "6c982e21", "metadata": { "editable": true }, @@ -4662,7 +4660,7 @@ }, { "cell_type": "markdown", - "id": "759fda61", + "id": "28de3ce3", "metadata": { "editable": true }, @@ -4676,7 +4674,7 @@ { "cell_type": "code", "execution_count": 46, - "id": "93284b25", + "id": "819f05e1", "metadata": { "collapsed": false, "editable": true @@ -4689,7 +4687,7 @@ }, { "cell_type": "markdown", - "id": "a3388ab9", + "id": "f8f20749", "metadata": { "editable": true }, @@ -4703,7 +4701,7 @@ }, { "cell_type": "markdown", - "id": "985f07fa", + "id": "43ca9d86", "metadata": { "editable": true }, @@ -4716,7 +4714,7 @@ }, { "cell_type": "markdown", - "id": "65ca73e3", + "id": "0a80a3b2", "metadata": { "editable": true }, @@ -4727,7 +4725,7 @@ }, { "cell_type": "markdown", - "id": "97ccbc96", + "id": "8cc1e421", "metadata": { "editable": true }, @@ -4739,7 +4737,7 @@ }, { "cell_type": "markdown", - "id": "0e7404ee", + "id": "8d7a5fbf", "metadata": { "editable": true }, @@ -4749,7 +4747,7 @@ }, { "cell_type": "markdown", - "id": "64aed9c5", + "id": "fc2e32e9", "metadata": { "editable": true }, @@ -4761,7 +4759,7 @@ }, { "cell_type": "markdown", - "id": "e0a3bdb2", + "id": "70c1826e", "metadata": { "editable": true }, @@ -4772,7 +4770,7 @@ }, { "cell_type": "markdown", - "id": "4ef8be54", + "id": "0fba2f0a", "metadata": { "editable": true }, @@ -4791,7 +4789,7 @@ { "cell_type": "code", "execution_count": 47, - "id": "5283ee66", + "id": "ff051f0b", "metadata": { "collapsed": false, "editable": true @@ -4807,7 +4805,7 @@ }, { "cell_type": "markdown", - "id": "f275d73e", + "id": "d3911470", "metadata": { "editable": true }, @@ -4817,7 +4815,7 @@ }, { "cell_type": "markdown", - "id": "e2f0b55f", + "id": "d888f3b2", "metadata": { "editable": true }, @@ -4828,7 +4826,7 @@ }, { "cell_type": "markdown", - "id": "5b01468f", + "id": "87329319", "metadata": { "editable": true }, @@ -4840,7 +4838,7 @@ }, { "cell_type": "markdown", - "id": "5af2c631", + "id": "e599eaec", "metadata": { "editable": true }, diff --git a/doc/src/week34/week34.do.txt b/doc/src/week34/week34.do.txt index 94ca2ecd0..8ce8ffd59 100644 --- a/doc/src/week34/week34.do.txt +++ b/doc/src/week34/week34.do.txt @@ -51,7 +51,7 @@ The labs are also available till 6pm Tuesdays and Wednesdays. Videos and learnin ===== Communication channels ===== * Communications (email and more) via URL:"canvas.uio.no" -* _Discord_ channel at URL:"https://discord.gg/hAaBRWFT72" +* _Discord_ channel at URL:"https://discord.gg/XBKjd4ccGq" !split @@ -841,7 +841,10 @@ most operations are vectorized, achieving thereby a high performance when dealin As we will see below it leads also to a very concice code close to the mathematical operations we may be interested in. For multidimensional arrays, we recommend strongly "xarray":"http://xarray.pydata.org/en/stable/". _xarray_ has much of the same flexibility as _pandas_, but allows for the extension to higher dimensions than two. We will see examples later of the usage of both _pandas_ and _xarray_. +!split +===== Pandas AI ===== +Try out "Pandas AI":"https://pandas-ai.com/" !split @@ -1893,13 +1896,6 @@ $\bm{X}^T\bm{X}$. _Small question_: Do you think the example we have at hand here (the nuclear binding energies) can lead to problems in inverting the matrix $\bm{X}^T\bm{X}$? What kind of problems can we expect? !eblock -!split -===== Some useful matrix and vector expressions ===== - -See the handwritten notes at URL:"https://github.com/CompPhysics/MachineLearning/blob/master/doc/HandWrittenNotes/2022/NotesExercise5Week452022.pdf" - -These notes will be discussed during one of the lectures. - !split ===== Interpretations and optimizing our parameters ===== !bblock