Skip to content

Instantly share code, notes, and snippets.

View HarishJul's full-sized avatar
🎯
Focusing

Harish Julapalli HarishJul

🎯
Focusing
View GitHub Profile
@HarishJul
HarishJul / terraform_error.txt
Created December 7, 2021 06:24
Terraform template error
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
#loss
def loss_fn(pred, actual):
squared_diff = (pred - actual)**2
mse = squared_diff.mean()
return mse
#model
def model(t_f, w, b):
return (w * t_f + b)
@HarishJul
HarishJul / arch_1.py
Last active August 23, 2020 09:46
code for PyTorch NN
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)
@HarishJul
HarishJul / understanding-word-vectors.ipynb
Created April 29, 2019 19:17 — forked from aparrish/understanding-word-vectors.ipynb
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.