start new:
tmux
start new with session name:
tmux new -s myname
{ | |
"id": 1, | |
"title": "Inception", | |
"description": "A thief who enters the dreams of others to steal secrets from their subconscious.", | |
"genre": "Sci-Fi", | |
"rating": "PG-13", | |
"duration_minutes": 148, | |
"release_date": "2010-07-16", | |
"poster_url": "https://i.ebayimg.com/00/s/MTYwMFgxMDk3/z/LlUAAOSwm8VUwoRL/$_57.JPG?set_id=880000500F", | |
"trailer_url": "https://www.youtube.com/embed/YoHD9XEInc0?si=zuo_jxKgMoyfmpYE", |
#!/bin/env python | |
import argparse | |
import warnings | |
warnings.filterwarnings("ignore", category=DeprecationWarning) | |
import torch | |
import nni | |
import pytorch_lightning as pl |
As configured in my dotfiles.
start new:
tmux
start new with session name:
import numpy as np | |
import torch | |
# 9 data points: one x1 x2 y | |
xy = np.matrix ([ | |
[1.0, 0.0, 0.0, 0.5], | |
[1.0, 0.0, 0.5, 0.3], | |
[1.0, 0.0, 1.0, 0.2], | |
[1.0, 0.5, 0.0, 0.8], | |
[1.0, 0.5, 0.5, 0.5], |
x = dict() | |
def update(x, id, location, time): | |
locs = x.get(id) | |
if (locs is None): | |
locs = dict() | |
locs[location] = [time] | |
x[id] = locs | |
else: | |
times = locs.get(location) |
8 | |
4 | |
3 |