- OS
- Ubuntu 16.04
- CUDA
- CUDA 9.0
- NVCC 9.0.176
- CUDNN 7.1.4
- Tensorflow
- GPU 1.8.0
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 | |
| . ~/anaconda3/etc/profile.d/conda.sh | |
| ENVS=$(conda env list | grep '^\w' | cut -d' ' -f1) | |
| for env in $ENVS; do | |
| conda remove -n $env --all | |
| echo "Removing $env" | |
| done |
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 | |
| . ~/anaconda3/etc/profile.d/conda.sh | |
| NOW=$(date "+%Y-%m-%d") | |
| if [ $1 -eq 0 ]; then | |
| DIR='~/Desktop/condas/' | |
| else | |
| DIR=$1 | |
| fi |
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 | |
| ENVS=$(conda env list | grep '^\w' | cut -d' ' -f1) | |
| for env in $ENVS; do | |
| conda remove -n $env --all | |
| echo "Removing $env" | |
| done |
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 | |
| NOW=$(date "+%Y-%m-%d") | |
| DIR=$1 | |
| mkdir $DIR/envs-$NOW | |
| ENVS=$(conda env list | grep '^\w' | cut -d' ' -f1) | |
| for env in $ENVS; do | |
| source activate $env | |
| conda env export > $DIR/envs-$NOW/$env.yml | |
| echo "Exporting $env to .yml" |
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
| from __future__ import division | |
| from numpy import * | |
| class AdaBoost: | |
| def __init__(self, training_set): | |
| self.training_set = training_set | |
| self.N = len(self.training_set) | |
| self.weights = ones(self.N)/self.N | |
| self.RULES = [] |
NewerOlder