Skip to content

Instantly share code, notes, and snippets.

View gist:5d0ee51360c833d95288717b89b587d9
Calculating QSAR model...
RANDOM FOREST: 88(train), 22(test), 10 repeats
Warning: final_rf not assigned, so selecting last rf to continue
train_x: [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
@d6y
d6y / playground.rs
Created Dec 16, 2020 — forked from rust-play/playground.rs
Code shared from the Rust Playground
View playground.rs
trait Debuggable {
fn debug(self) -> Self;
}
impl<T> Debuggable for T
where
T: Sized + std::fmt::Debug,
{
fn debug(self) -> Self {
dbg!(self)
@d6y
d6y / playground.rs
Created Dec 16, 2020 — forked from rust-play/playground.rs
Code shared from the Rust Playground
View playground.rs
trait Debuggable {
fn debug(self) -> Self
where
Self: Sized + std::fmt::Debug,
{
dbg!(self)
}
}
impl<T> Debuggable for T {}
@d6y
d6y / gist:5455c7e4129456da6be819b90b9cb449
Created May 19, 2020
piusher overriding date time format
View gist:5455c7e4129456da6be819b90b9cb449
// Override the default LocalDateTime formatting
// (the default splits out each date.time element as a seperate field: hour, minute, day, etc)
def newInstance(url: String): Pusher = {
import com.google.gson._
import java.lang.reflect.Type
val localDateTimeSerializer: JsonSerializer[LocalDateTime] = new JsonSerializer[LocalDateTime] {
def serialize(src: LocalDateTime, typeOfSrc: Type, context: JsonSerializationContext): JsonElement =
new JsonPrimitive(src.toString())
View darn.txt
~/Developer/darn via C darn
❯ conda install -c conda-forge jupyterlab -y
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /Users/richard/opt/miniconda3/envs/darn
added / updated specs:
View length of day.csv
Jan Length Difference Additional daylight (seconds) Length of day (hours)
01/01/2020 08:01:54 01:00 60.00 8.03
02/01/2020 08:03:01 01:06 66.00 8.05
03/01/2020 08:04:14 01:12 72.00 8.07
04/01/2020 08:05:33 01:18 78.00 8.09
05/01/2020 08:06:57 01:24 84.00 8.12
06/01/2020 08:08:27 01:29 89.00 8.14
07/01/2020 08:10:02 01:35 95.00 8.17
08/01/2020 08:11:43 01:40 100.00 8.20
09/01/2020 08:13:28 01:45 105.00 8.22
@d6y
d6y / 1 - irace.out
Last active Dec 17, 2018
Atari CGP irace run
View 1 - irace.out
*******************************************************************************
* irace: An implementation in R of Iterated Race
* Version: 3.1.2112M
* Copyright (C) 2010-2018
* Manuel Lopez-Ibanez <manuel.lopez-ibanez@manchester.ac.uk>
* Jeremie Dubois-Lacoste
* Leslie Perez Caceres <leslie.perez.caceres@ulb.ac.be>
*
* This is free software, and you are welcome to redistribute it under certain
* conditions. See the GNU General Public License for details. There is NO
@d6y
d6y / instance-list.txt
Last active Nov 30, 2018
CGP irace tuning
View instance-list.txt
## This is an example of specifying instances with a file.
# Each line is an instance relative to trainInstancesDir
# (see scenario.txt.tmpl) and an optional sequence of instance-specific
# parameters that will be passed to target-runnerx when invoked on that
# instance.
# Empty lines and comments are ignored.
experiments/atari.jl --id frostbite
@d6y
d6y / output.txt
Created Nov 16, 2018
CGP julia 0.7 test run
View output.txt
CGP.jl (julia_v0.7 *)$ julia --project=. run_tests.jl
[ Info: Chromosome tests
CGPChromo
┌ Warning: `rand(dims::Dims)` is deprecated, use `rand(Float64, dims)` instead.
│ caller = macro expansion at chromosome.jl:14 [inlined]
└ @ Core ~/Developer/evolution/cga/forked/CGP.jl/test/chromosome.jl:14
┌ Warning: `a::Number + b::AbstractArray` is deprecated, use `a .+ b` instead.
│ caller = + at operators.jl:502 [inlined]
└ @ Core ./operators.jl:502
PCGPChromo
@d6y
d6y / results.md
Last active Nov 5, 2018
Results of running (modified) CGP.jl
View results.md

Results of running CGP.jl

Code: https://github.com/d6y/CGP.jl (forked version primary to correct gene representation)

Enviroment:

  • ALE 0.51
  • Julia 0.6.4

Parameters:

  • Output 0.6