Skip to content

Instantly share code, notes, and snippets.

View cmd-ntrf's full-sized avatar

Félix-Antoine Fortin cmd-ntrf

View GitHub Profile
#!/bin/bash
set -e
module purge -f
module load compilers/gcc/4.8.5 compilers/java/1.8 apps/buildtools cuda/7.5 libs/cuDNN/5 compilers/swig apps/git apps/bazel/0.4.3
OPWD=$(pwd)
TF_COMPILE_PATH=/tmp/${USER}_$(date +'%s')
BAZEL_ROOT_PATH=$TF_COMPILE_PATH/bazel
mkdir -p $TF_COMPILE_PATH; cd $TF_COMPILE_PATH
import operator
import math
import random
import ctypes
from functools import reduce
import numpy
from deap import algorithms
from deap import base
import array
import random
from deap import algorithms
from deap import base
from deap import creator
from deap import tools
import networkx as nx
import math
import drawG
@cmd-ntrf
cmd-ntrf / deap_ga_onemax_multidemic_distributed.py
Created March 25, 2012 18:30 — forked from anonymous/deap_ga_onemax_multidemic_distributed.py
A simple example of multidemes distribution using DEAP
# This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the