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 math | |
| import matplotlib.pyplot as plt | |
| def Phi(a, b): | |
| sum = 0 | |
| base = 2 | |
| while(a > 0): | |
| sum += (a%b)/base | |
| base *= 2 | |
| a = a//b |
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
| # --- built in --- | |
| import os | |
| import sys | |
| import time | |
| import json | |
| import logging | |
| import urllib.parse as urlparse | |
| from typing import List |
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
| # --- built in --- | |
| import os | |
| import sys | |
| import time | |
| import json | |
| import logging | |
| import argparse | |
| import threading | |
| import urllib.parse as urlparse |
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
| #ifndef __ERROR_HANDLER_CUH__ | |
| #define __ERROR_HANDLER_CUH__ | |
| #include <iostream> | |
| #include <type_traits> | |
| #include <cuda_runtime.h> | |
| #include <cublas_v2.h> | |
| #include <cusparse.h> |
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 gym | |
| import numpy as np | |
| import pybullet_envs | |
| import subprocess as sp | |
| VIDEO_WIDTH = 1280 | |
| VIDEO_HEIGHT = 720 | |
| VIDEO_FRAMERATE = 60 | |
| VIDEO_OUTPUT = 'output.mp4' |
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 tensorflow as tf | |
| import numpy as np | |
| def masked_scatter_nd_max(canvas, indices, values, mask=None): | |
| ''' | |
| Scatters vector values with dim=v over an n-dim canvas, | |
| For projecting to an image-type canvas, `dn` = `d2`, that is, the |
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
| /****************************************************************************** | |
| Online C++ Compiler. | |
| Code, Compile, Run and Debug C++ program online. | |
| Write your code in this editor and press "Run" button to compile and execute it. | |
| *******************************************************************************/ | |
| #include <iostream> | |
| #include <string> |
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
| /****************************************************************************** | |
| Online C++ Compiler. | |
| Code, Compile, Run and Debug C++ program online. | |
| Write your code in this editor and press "Run" button to compile and execute it. | |
| *******************************************************************************/ | |
| #include <iostream> | |
| #include <string> |
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
| [2021-07-11 04:00:46|MainThread|WARNING|unstable_baselines.recil_lstmx2:train_recil.py:301]: ========================= Hyper Parameters ========================= | |
| [2021-07-11 04:00:46|MainThread|WARNING|unstable_baselines.recil_lstmx2:train_recil.py:301]: |------------------------------ ENV -------------------------------| | |
| [2021-07-11 04:00:46|MainThread|WARNING|unstable_baselines.recil_lstmx2:train_recil.py:301]: | env_id: MineRLObtainDiamondVectorObf-v0 | | |
| [2021-07-11 04:00:46|MainThread|WARNING|unstable_baselines.recil_lstmx2:train_recil.py:301]: | record_video: True | | |
| [2021-07-11 04:00:46|MainThread|WARNING|unstable_baselines.recil_lstmx2:train_recil.py:301]: | monitor_dir: train/recil_lstmx2/monitor/ | | |
| [2021-07-11 04:00:46|MainThread|WARNING|unstable_baselines.recil_lstmx2:train_recil.py:301]: | monitor: True | | |
| [2021-07-11 04:00:46|MainThread|WARNING|unstable_bas |
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 datetime | |
| print( | |
| datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') | |
| ) | |
| # '2021-09-01 13:09:06' |