Skip to content

Instantly share code, notes, and snippets.

View Sayam753's full-sized avatar
🎯
Focusing

Sayam Kumar Sayam753

🎯
Focusing
View GitHub Profile
View test_grad_solve.py
import numpy as np
import torch
def test_b_bar(A, b):
A_tensor = torch.tensor(A, requires_grad=True)
b_tensor = torch.tensor(b, requires_grad=True)
c_tensor = torch.linalg.solve(A_tensor, b_tensor)
c_tensor.retain_grad()
c_tensor.sum().backward()
View solve_3d_grad.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View glm_model_selection.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View pmf_pymc3.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View finding_script.md
(pymc_dev_test) Sayam:~ $ find /Users/sayam/Library/Jupyter -name "*script*"   
(pymc_dev_test) Sayam:~ $ find ~/miniconda3/envs/pymc_dev_test/share/jupyter -name "*script*"
(pymc_dev_test) Sayam:~ $ 
(pymc_dev_test) Sayam:~ $ tree /Users/sayam/Library/Jupyter
/Users/sayam/Library/Jupyter
├── nbconvert
│   └── templates
│       ├── html
View versioned_docs.md

Versioned docs - PyMC3

We gonna try out and see how we can use ReadTheDocs to host PyMC3 docs in a versioned fashion.

I am trying out things on my fork. So, three major tasks for today -

  1. Build docs locally (This will help me understand what is needed to build documentation)
  2. Setup ReadTheDocs
  3. Try out some versioning stuff and see how to setup ReadTheDocs for this versioning
View autoguide_experiments.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Sayam753
Sayam753 / mail.py
Created October 6, 2020 03:26
SMTP mail
View mail.py
import smtplib
from email.message import EmailMessage
msg = EmailMessage()
msg["Subject"] = "From my script"
msg["From"] = "sayamkumar049@gmail.com"
msg["To"] = "anubhavgupta2260@gmail.com"
smtp = smtplib.SMTP_SSL("smtp.gmail.com", 465)
smtp.login("sayamkumar049@gmail.com", "<my app password here>")
@Sayam753
Sayam753 / prior_knowledge.ipynb
Created September 19, 2020 06:09
prior_knowledge.ipynb
View prior_knowledge.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Sayam753
Sayam753 / log_likelihood.ipynb
Created September 7, 2020 10:30
Log likelihood for single draw
View log_likelihood.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.