| Name | State | Action |
|---|---|---|
| Acrobot-v1 | Box(6) | Discrete(3) |
| CartPole-v1 | Box(4) | Discrete(2) |
| MountainCar-v0 | Box(2) | Discrete(3) |
| MountainCarContinuous-v0 | Box(2) | Box(1) |
| Pendulum-v0 | Box(1) | Box(3) |
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 argparse | |
| import torch | |
| import torch.nn as nn | |
| import torch.nn.functional as F | |
| import torch.optim as optim | |
| from torch.optim.lr_scheduler import StepLR | |
| from torchvision import datasets, transforms | |
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
| #!/bin/bash | |
| # Its better to run each line in this bash script line by line rather than at a | |
| # stretch cuz its not that good. It also creates ~/.ctan ~/perl5 and a few lines | |
| # in the ~/.(bash/zsh)rc for fixing the perl5 paths. So I dont really like this | |
| # script cuz its too invasive for me. But if there is no other option, I would | |
| # run it. Or just make an alias or a Makefile with a bunch of ln -s commands for | |
| # the project you wanna use stow for. | |
| set -euo pipefail |
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 spotipy | |
| from spotipy.oauth2 import SpotifyClientCredentials | |
| sp = spotipy.Spotify( | |
| auth_manager=SpotifyClientCredentials( | |
| client_id="", | |
| client_secret="", | |
| ), | |
| ) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| exclude: "cliport/environments/assets/" | |
| repos: | |
| - repo: https://github.com/pre-commit/pre-commit-hooks | |
| rev: v4.4.0 | |
| hooks: | |
| - id: trailing-whitespace | |
| - id: end-of-file-fixer | |
| - id: check-yaml | |
| - id: check-added-large-files | |
| args: ["--maxkb=10240"] # 10MB |
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
| #!/bin/bash | |
| if [[ $(uname) == "Linux" ]] && [[ $(uname -m) == "x86_64" ]]; then | |
| wget --content-disposition https://dl.filippo.io/age/latest?for=Linux/amd64 | |
| elif [[ $(uname) == "Darwin" ]]; then | |
| wget --content-disposition https://dl.filippo.io/age/latest?for=$(uname)/$(uname -m) | |
| else | |
| echo "Error: Unsupported OS" | |
| fi | |
| tar xvf age-*.tar.gz |