This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Initializing provider plugins... | |
- Finding latest version of hashicorp/random... | |
2021-12-07T11:51:11.924+0530 [DEBUG] Service discovery for registry.terraform.io at https://registry.terraform.io/.well-known/terraform.json | |
2021-12-07T11:51:11.925+0530 [TRACE] HTTP client GET request to https://registry.terraform.io/.well-known/terraform.json | |
2021-12-07T11:51:14.261+0530 [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/random/versions | |
2021-12-07T11:51:14.262+0530 [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/random/versions | |
- Finding latest version of hashicorp/template... | |
- Finding hashicorp/aws versions matching "~> 3.53.0"... | |
2021-12-07T11:51:14.410+0530 [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/aws/versions | |
2021-12-07T11:51:14.410+0530 [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/aws/versions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#loss | |
def loss_fn(pred, actual): | |
squared_diff = (pred - actual)**2 | |
mse = squared_diff.mean() | |
return mse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#model | |
def model(t_f, w, b): | |
return (w * t_f + b) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
#Femur Lengths in inches | |
t_f = [19.72,19.01,17.79,17.59,17.51,18.89,18.24,19.91,18.75,17.44,20.19,19.33] | |
#Respective height of a person in inches | |
t_h = [69.0836, 67.7488, 65.4552, 65.0792, 64.9288,67.5232, 66.3012, | |
69.4408, 67.2600, 64.7972, 69.9672, 68.3504] | |
#Convert both lists to Tensors | |
t_f = torch.tensor(t_f) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.