Example of transfer learning taken from https://gist.github.com/baraldilorenzo/07d7802847aaad0a35d3
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 subprocess | |
| import multiprocessing | |
| class MultiImuSubprocess(multiprocessing.Process): | |
| def __init__(self, result_queue, death_pill_queue, cmd, *args, **kwargs): | |
| multiprocessing.Process.__init__(self) | |
| self.result_queue = result_queue | |
| self.death_pill_queue=death_pill_queue | |
| self.data = None |
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
| import random | |
| from typing import get_type_hints | |
| class Bar: | |
| def foo(self, a: str) -> int: | |
| return 1 | |
| class fakedict(dict): |
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 | |
| DIR1=$(pwd) | |
| MAINDIR=$(pwd)/3rdparty | |
| mkdir ${MAINDIR} | |
| cd ${MAINDIR} | |
| conda create -y -n "NavAgents" python=3.6 | |
| source activate NavAgents | |
| conda install opencv -y | |
| conda install pytorch torchvision -c pytorch -y |
If you are lazy and want to set up credentials as in last commit
git config user.name $(git log --format='%an' -1)
git config user.email $(git log --format='%ae' -1)
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
| ((nil . ((eval . ( | |
| defvar projectile-main-project "/home/mwm/repositories/LHCb/ml_analysis_recreation" | |
| ))))) |
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
| import requests | |
| r = requests.get("https://api.kraken.com/0/public/OHLC?pair=XETHZEUR&interval=60") | |
| data = r.json() | |
| viewable = data['result']["XETHZEUR"][-1][-3] | |
| print(viewable[:-3]+'€') |