Skip to content

Instantly share code, notes, and snippets.

View Sayam753's full-sized avatar
🎯
Focusing

Sayam Kumar Sayam753

🎯
Focusing
View GitHub Profile
@Sayam753
Sayam753 / prog.ipynb
Created August 12, 2020 03:19
Progress bar using tf.print
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Sayam753
Sayam753 / converge.py
Last active August 15, 2020 08:09
Parameter Convergence Checks in TFP
"""Convergence criterion callbacks for VI."""
import collections
import numpy as np
import tensorflow as tf
import tensorflow_probability as tfp
from typing import List, Optional
from tensorflow_probability.python.optimizer.convergence_criteria import convergence_criterion
ParameterState = collections.namedtuple("ParameterState", ["previous_value"])
@Sayam753
Sayam753 / log_likelihood.ipynb
Created September 7, 2020 10:30
Log likelihood for single draw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Sayam753
Sayam753 / prior_knowledge.ipynb
Created September 19, 2020 06:09
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 / mail.py
Created October 6, 2020 03:26
SMTP mail
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>")
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

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
(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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.