SlideShare a Scribd company logo
1 of 6
Download to read offline
Describe the complete pipeline in ML using programming through PyTorch. For this, you need
to write code that performs linear regression using PyTorch on simulated data. Make sure you
include training, testing and evaluation in your code.
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": []
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "V0RhNGmBjFWt"
},
"outputs": [],
"source": [
"import torchn",
"import numpy as npn",
"import matplotlib.pyplot as pltn",
"import seaborn"
]
},
{
"cell_type": "code",
"source": [
"# Creating a function f(X) with a slope of -5n",
"X = torch.arange(-5, 5, 0.2).view(-1, 1)n",
"func = -5 * X"
],
"metadata": {
"id": "Vq4OWcCNjJFj"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"# Plot the line in red with gridsn",
"plt.plot(X.numpy(), func.numpy(), 'r', label='func')n",
"plt.xlabel('x')n",
"plt.ylabel('y')n",
"plt.legend()n",
"plt.grid('True', color='y')n",
"plt.show()"
],
"metadata": {
"id": "EFDhIKURjPbB"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"# Adding Gaussian noise to the function f(X) and saving it in Yn",
"Y = func + 1.7 * torch.randn(X.size())"
],
"metadata": {
"id": "c2KRcFl5jRuy"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"# Plot and visualizing the data points in bluen",
"plt.plot(X.numpy(), Y.numpy(), 'b+', label='Y')n",
"plt.plot(X.numpy(), func.numpy(), 'r', label='func')n",
"plt.xlabel('x')n",
"plt.ylabel('y')n",
"plt.legend()n",
"plt.grid('True', color='y')n",
"plt.show()"
],
"metadata": {
"id": "ahd47p24jgrB"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"# defining the function for forward pass for predictionn",
"def forward(x):n",
" return w * x"
],
"metadata": {
"id": "T-vtFS9Gjig2"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"# evaluating data points with Mean Square Error.n",
"def criterion(y_pred, y):n",
" return torch.mean( (y_pred - y) ** 2 )"
],
"metadata": {
"id": "DpPaj2Vvjv5A"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"w = torch.tensor(-10.0, requires_grad=True)"
],
"metadata": {
"id": "UMXfOHC0jx9G"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"step_size = 0.1n",
"loss_list = []n",
"iter = 20"
],
"metadata": {
"id": "Ml6UCAqujzvm"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"for i in range (iter):n",
" # making predictions with forward passn",
" Y_pred = forward(X)n",
"n",
"n",
" # calculating the loss between original and predicted data pointsn",
" loss = criterion(Y_pred, Y)n",
"n",
"n",
" # storing the calculated loss in a listn",
" loss_list.append(loss.item())n",
"n",
"n",
" # backward pass for computing the gradients of the loss w.r.t to learnable parametersn",
" loss.backward()n",
"n",
"n",
" # updateing the parameters after each iterationn",
" w.data = w.data - step_size * w.grad.datan",
"n",
"n",
" # zeroing gradients after each iterationn",
" w.grad.data.zero_()n",
"n",
"n",
" # priting the values for understandingn",
" print('{},t{},t{}'.format(i, loss.item(), w.item())) n",
" n",
" n",
" # .item() gets the numeric value from the tensor structure"
],
"metadata": {
"id": "3C11BynFj1yw"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"# Plotting the loss after each iterationn",
"plt.plot(loss_list, 'r')n",
"plt.tight_layout()n",
"plt.grid('True', color='y')n",
"plt.xlabel("Epochs/Iterations")n",
"plt.ylabel("Loss")n",
"plt.show()"
],
"metadata": {
"id": "dt9RKOLSj-EZ"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"w.item()"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "sSswUL6-kQ5O",
"outputId": "9412eaed-eaab-4d8c-81fd-822516587349"
},
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"-4.990855693817139"
]
},
"metadata": {},
"execution_count": 35
}
]
},
{
"cell_type": "code",
"source": [],
"metadata": {
"id": "RA8s3FjZkbuU"
},
"execution_count": null,
"outputs": []
}
]
}

More Related Content

Similar to Describe the complete pipeline in ML using programming through PyTorch.pdf

A10presentationofbiologyandpshyology.pptx
A10presentationofbiologyandpshyology.pptxA10presentationofbiologyandpshyology.pptx
A10presentationofbiologyandpshyology.pptx
ranjangamer007
ย 

Similar to Describe the complete pipeline in ML using programming through PyTorch.pdf (20)

A10presentationofbiologyandpshyology.pptx
A10presentationofbiologyandpshyology.pptxA10presentationofbiologyandpshyology.pptx
A10presentationofbiologyandpshyology.pptx
ย 
UDP.yash
UDP.yashUDP.yash
UDP.yash
ย 
C programm.pptx
C programm.pptxC programm.pptx
C programm.pptx
ย 
Lab. Programs in C
Lab. Programs in CLab. Programs in C
Lab. Programs in C
ย 
Picking Mushrooms after Cppcheck
Picking Mushrooms after CppcheckPicking Mushrooms after Cppcheck
Picking Mushrooms after Cppcheck
ย 
Programming with GUTs
Programming with GUTsProgramming with GUTs
Programming with GUTs
ย 
I have come code already but I cant quite get the output rig.pdf
I have come code already but I cant quite get the output rig.pdfI have come code already but I cant quite get the output rig.pdf
I have come code already but I cant quite get the output rig.pdf
ย 
C programs
C programsC programs
C programs
ย 
Write a program that reads in integer as many as the user enters from.docx
Write a program that reads in integer as many as the user enters from.docxWrite a program that reads in integer as many as the user enters from.docx
Write a program that reads in integer as many as the user enters from.docx
ย 
A Slipshod Check of the Visual C++ 2013 Library (update 3)
A Slipshod Check of the Visual C++ 2013 Library (update 3)A Slipshod Check of the Visual C++ 2013 Library (update 3)
A Slipshod Check of the Visual C++ 2013 Library (update 3)
ย 
cpract.docx
cpract.docxcpract.docx
cpract.docx
ย 
CppCat Checks OpenMW: Not All is Fine in the Morrowind Universe
CppCat Checks OpenMW: Not All is Fine in the Morrowind UniverseCppCat Checks OpenMW: Not All is Fine in the Morrowind Universe
CppCat Checks OpenMW: Not All is Fine in the Morrowind Universe
ย 
The Unicorn's Travel to the Microcosm
The Unicorn's Travel to the MicrocosmThe Unicorn's Travel to the Microcosm
The Unicorn's Travel to the Microcosm
ย 
Debug Information And Where They Come From
Debug Information And Where They Come FromDebug Information And Where They Come From
Debug Information And Where They Come From
ย 
Analysis of Haiku Operating System (BeOS Family) by PVS-Studio. Part 2
Analysis of Haiku Operating System (BeOS Family) by PVS-Studio. Part 2Analysis of Haiku Operating System (BeOS Family) by PVS-Studio. Part 2
Analysis of Haiku Operating System (BeOS Family) by PVS-Studio. Part 2
ย 
A few words about OpenSSL
A few words about OpenSSLA few words about OpenSSL
A few words about OpenSSL
ย 
dbms project with output.docx
dbms project with output.docxdbms project with output.docx
dbms project with output.docx
ย 
NSClient++: Monitoring Simplified at OSMC 2013
NSClient++: Monitoring Simplified at OSMC 2013NSClient++: Monitoring Simplified at OSMC 2013
NSClient++: Monitoring Simplified at OSMC 2013
ย 
sodapdf-converted into ppt presentation(1).pdf
sodapdf-converted into ppt presentation(1).pdfsodapdf-converted into ppt presentation(1).pdf
sodapdf-converted into ppt presentation(1).pdf
ย 
Use Python Code to add a block of code to count the number of dots wit.pdf
Use Python Code to add a block of code to count the number of dots wit.pdfUse Python Code to add a block of code to count the number of dots wit.pdf
Use Python Code to add a block of code to count the number of dots wit.pdf
ย 

More from BorisdFHFraserk

Develop an EER model for the following situation- After completing a c.pdf
Develop an EER model for the following situation- After completing a c.pdfDevelop an EER model for the following situation- After completing a c.pdf
Develop an EER model for the following situation- After completing a c.pdf
BorisdFHFraserk
ย 

More from BorisdFHFraserk (20)

Create a network diagram using a forward pass and reverse pass from th.pdf
Create a network diagram using a forward pass and reverse pass from th.pdfCreate a network diagram using a forward pass and reverse pass from th.pdf
Create a network diagram using a forward pass and reverse pass from th.pdf
ย 
Cov(X+Y-XY)-D(X)D(Y.pdf
Cov(X+Y-XY)-D(X)D(Y.pdfCov(X+Y-XY)-D(X)D(Y.pdf
Cov(X+Y-XY)-D(X)D(Y.pdf
ย 
courage in leadership 1- What am I actually learning here- Any insight.pdf
courage in leadership 1- What am I actually learning here- Any insight.pdfcourage in leadership 1- What am I actually learning here- Any insight.pdf
courage in leadership 1- What am I actually learning here- Any insight.pdf
ย 
Cov(XiX-X)-0.pdf
Cov(XiX-X)-0.pdfCov(XiX-X)-0.pdf
Cov(XiX-X)-0.pdf
ย 
Coronado Hotel Foxtrot initiated operations on July 1- 2020- To manage.pdf
Coronado Hotel Foxtrot initiated operations on July 1- 2020- To manage.pdfCoronado Hotel Foxtrot initiated operations on July 1- 2020- To manage.pdf
Coronado Hotel Foxtrot initiated operations on July 1- 2020- To manage.pdf
ย 
Coronado Company reported total manufacturing costs of $65100- manufac.pdf
Coronado Company reported total manufacturing costs of $65100- manufac.pdfCoronado Company reported total manufacturing costs of $65100- manufac.pdf
Coronado Company reported total manufacturing costs of $65100- manufac.pdf
ย 
Create a Cladogram and Venn diagram based on the morphological-anatomi.pdf
Create a Cladogram and Venn diagram based on the morphological-anatomi.pdfCreate a Cladogram and Venn diagram based on the morphological-anatomi.pdf
Create a Cladogram and Venn diagram based on the morphological-anatomi.pdf
ย 
Do you think this sense of structured mobility is fair to everyone- Is.pdf
Do you think this sense of structured mobility is fair to everyone- Is.pdfDo you think this sense of structured mobility is fair to everyone- Is.pdf
Do you think this sense of structured mobility is fair to everyone- Is.pdf
ย 
Dish Corporation acquired 100 percent of the common stock of Toll S na.pdf
Dish Corporation acquired 100 percent of the common stock of Toll S na.pdfDish Corporation acquired 100 percent of the common stock of Toll S na.pdf
Dish Corporation acquired 100 percent of the common stock of Toll S na.pdf
ย 
DNA polymerase is found in- cells and all viruses all viruses some vir.pdf
DNA polymerase is found in- cells and all viruses all viruses some vir.pdfDNA polymerase is found in- cells and all viruses all viruses some vir.pdf
DNA polymerase is found in- cells and all viruses all viruses some vir.pdf
ย 
Disk drives have been getting larger- Their capacity is now often give.pdf
Disk drives have been getting larger- Their capacity is now often give.pdfDisk drives have been getting larger- Their capacity is now often give.pdf
Disk drives have been getting larger- Their capacity is now often give.pdf
ย 
DistributionAbsorption of a drug is a requirement for establishing ade.pdf
DistributionAbsorption of a drug is a requirement for establishing ade.pdfDistributionAbsorption of a drug is a requirement for establishing ade.pdf
DistributionAbsorption of a drug is a requirement for establishing ade.pdf
ย 
discuss the every point related to secure cloud storage policy - intro.pdf
discuss the every point related to secure cloud storage policy - intro.pdfdiscuss the every point related to secure cloud storage policy - intro.pdf
discuss the every point related to secure cloud storage policy - intro.pdf
ย 
Discrete structures Using the patterns to find these primes- is there.pdf
Discrete structures Using the patterns to find these primes- is there.pdfDiscrete structures Using the patterns to find these primes- is there.pdf
Discrete structures Using the patterns to find these primes- is there.pdf
ย 
Directions- You have been asked to write a newspaper editorial- In the.pdf
Directions- You have been asked to write a newspaper editorial- In the.pdfDirections- You have been asked to write a newspaper editorial- In the.pdf
Directions- You have been asked to write a newspaper editorial- In the.pdf
ย 
Difficulties and strengths of use cases After reading the textbook mat.pdf
Difficulties and strengths of use cases After reading the textbook mat.pdfDifficulties and strengths of use cases After reading the textbook mat.pdf
Difficulties and strengths of use cases After reading the textbook mat.pdf
ย 
Different sensory systems have different benefits and biological relev.pdf
Different sensory systems have different benefits and biological relev.pdfDifferent sensory systems have different benefits and biological relev.pdf
Different sensory systems have different benefits and biological relev.pdf
ย 
Create a small java or python program to implement the following class.pdf
Create a small java or python program to implement the following class.pdfCreate a small java or python program to implement the following class.pdf
Create a small java or python program to implement the following class.pdf
ย 
Diabetics are prone to diabetic nephropathy because a- diabetics are.pdf
Diabetics are prone to diabetic nephropathy because  a- diabetics are.pdfDiabetics are prone to diabetic nephropathy because  a- diabetics are.pdf
Diabetics are prone to diabetic nephropathy because a- diabetics are.pdf
ย 
Develop an EER model for the following situation- After completing a c.pdf
Develop an EER model for the following situation- After completing a c.pdfDevelop an EER model for the following situation- After completing a c.pdf
Develop an EER model for the following situation- After completing a c.pdf
ย 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
ย 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
ย 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
ย 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
ย 

Recently uploaded (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
ย 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
ย 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
ย 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
ย 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ย 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
ย 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
ย 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
ย 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
ย 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
ย 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
ย 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
ย 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
ย 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
ย 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
ย 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
ย 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
ย 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
ย 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
ย 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
ย 

Describe the complete pipeline in ML using programming through PyTorch.pdf

  • 1. Describe the complete pipeline in ML using programming through PyTorch. For this, you need to write code that performs linear regression using PyTorch on simulated data. Make sure you include training, testing and evaluation in your code. { "nbformat": 4, "nbformat_minor": 0, "metadata": { "colab": { "provenance": [] }, "kernelspec": { "name": "python3", "display_name": "Python 3" }, "language_info": { "name": "python" } }, "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "id": "V0RhNGmBjFWt" }, "outputs": [], "source": [ "import torchn", "import numpy as npn", "import matplotlib.pyplot as pltn", "import seaborn" ] }, { "cell_type": "code", "source": [ "# Creating a function f(X) with a slope of -5n", "X = torch.arange(-5, 5, 0.2).view(-1, 1)n", "func = -5 * X" ], "metadata": { "id": "Vq4OWcCNjJFj" }, "execution_count": null, "outputs": []
  • 2. }, { "cell_type": "code", "source": [ "# Plot the line in red with gridsn", "plt.plot(X.numpy(), func.numpy(), 'r', label='func')n", "plt.xlabel('x')n", "plt.ylabel('y')n", "plt.legend()n", "plt.grid('True', color='y')n", "plt.show()" ], "metadata": { "id": "EFDhIKURjPbB" }, "execution_count": null, "outputs": [] }, { "cell_type": "code", "source": [ "# Adding Gaussian noise to the function f(X) and saving it in Yn", "Y = func + 1.7 * torch.randn(X.size())" ], "metadata": { "id": "c2KRcFl5jRuy" }, "execution_count": null, "outputs": [] }, { "cell_type": "code", "source": [ "# Plot and visualizing the data points in bluen", "plt.plot(X.numpy(), Y.numpy(), 'b+', label='Y')n", "plt.plot(X.numpy(), func.numpy(), 'r', label='func')n", "plt.xlabel('x')n", "plt.ylabel('y')n", "plt.legend()n", "plt.grid('True', color='y')n", "plt.show()" ], "metadata": { "id": "ahd47p24jgrB" }, "execution_count": null,
  • 3. "outputs": [] }, { "cell_type": "code", "source": [ "# defining the function for forward pass for predictionn", "def forward(x):n", " return w * x" ], "metadata": { "id": "T-vtFS9Gjig2" }, "execution_count": null, "outputs": [] }, { "cell_type": "code", "source": [ "# evaluating data points with Mean Square Error.n", "def criterion(y_pred, y):n", " return torch.mean( (y_pred - y) ** 2 )" ], "metadata": { "id": "DpPaj2Vvjv5A" }, "execution_count": null, "outputs": [] }, { "cell_type": "code", "source": [ "w = torch.tensor(-10.0, requires_grad=True)" ], "metadata": { "id": "UMXfOHC0jx9G" }, "execution_count": null, "outputs": [] }, { "cell_type": "code", "source": [ "step_size = 0.1n", "loss_list = []n", "iter = 20" ],
  • 4. "metadata": { "id": "Ml6UCAqujzvm" }, "execution_count": null, "outputs": [] }, { "cell_type": "code", "source": [ "for i in range (iter):n", " # making predictions with forward passn", " Y_pred = forward(X)n", "n", "n", " # calculating the loss between original and predicted data pointsn", " loss = criterion(Y_pred, Y)n", "n", "n", " # storing the calculated loss in a listn", " loss_list.append(loss.item())n", "n", "n", " # backward pass for computing the gradients of the loss w.r.t to learnable parametersn", " loss.backward()n", "n", "n", " # updateing the parameters after each iterationn", " w.data = w.data - step_size * w.grad.datan", "n", "n", " # zeroing gradients after each iterationn", " w.grad.data.zero_()n", "n", "n", " # priting the values for understandingn", " print('{},t{},t{}'.format(i, loss.item(), w.item())) n", " n", " n", " # .item() gets the numeric value from the tensor structure" ], "metadata": { "id": "3C11BynFj1yw" }, "execution_count": null, "outputs": [] },
  • 5. { "cell_type": "code", "source": [ "# Plotting the loss after each iterationn", "plt.plot(loss_list, 'r')n", "plt.tight_layout()n", "plt.grid('True', color='y')n", "plt.xlabel("Epochs/Iterations")n", "plt.ylabel("Loss")n", "plt.show()" ], "metadata": { "id": "dt9RKOLSj-EZ" }, "execution_count": null, "outputs": [] }, { "cell_type": "code", "source": [ "w.item()" ], "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "sSswUL6-kQ5O", "outputId": "9412eaed-eaab-4d8c-81fd-822516587349" }, "execution_count": null, "outputs": [ { "output_type": "execute_result", "data": { "text/plain": [ "-4.990855693817139" ] }, "metadata": {}, "execution_count": 35 } ] }, { "cell_type": "code", "source": [],