Skip to content

Instantly share code, notes, and snippets.

View Adriel-M's full-sized avatar

Adriel Martinez Adriel-M

View GitHub Profile
@Adriel-M
Adriel-M / gist:856546e5a064aeb55916dffbdbae9fe1
Created February 10, 2024 00:46
Added Tina Linking Step
YN0000: ┌ Fetch step
➤ YN0066: │ typescript@patch:typescript@npm%3A5.3.2#~builtin<compat/typescript>::version=5.3.2&hash=14eedb: Cannot apply hunk #2
➤ YN0013: │ 56 packages were already cached, 1707 had to be fetched
➤ YN0000: └ Completed in 2m 52s
➤ YN0000: ┌ Link step
➤ YN0007: │ esbuild@npm:0.18.20 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.18.11 must be built because it never has been before or the last one failed
➤ YN0007: │ yarn@npm:1.22.21 must be built because it never has been before or the last one failed
➤ YN0007: │ better-sqlite3@npm:8.7.0 must be built because it never has been before or the last one failed
➤ YN0007: │ protobufjs@npm:7.2.5 must be built because it never has been before or the last one failed
layer {
name: "data"
type: "Python"
top: "data"
top: "label"
python_param {
module: "layers"
layer: "InputLayer"
param_str: "{\'seed\': 1337, \'split\': \'train\', \'work_dir\': \'../work\'}"
}
@Adriel-M
Adriel-M / CartPole-REINFORCE-MCMC.py
Created May 2, 2017 00:21
REINFORCE: Monte Carlo Policy Gradient solution to Cartpole-v1 with hidden layer.
# REINFORCE: Monte Carlo Policy Gradient Implementation
# Learn more from Reinforcement Learning: An Introduction (p271)
# by Sutton & Barto
import tensorflow as tf
import gym
import numpy as np
from gym import wrappers
@Adriel-M
Adriel-M / CartPole-REINFORCE-MCMC.py
Created May 2, 2017 00:11
REINFORCE: Monte Carlo Policy Gradient solution to Cartpole-v1 with no hidden layer.
# REINFORCE: Monte Carlo Policy Gradient Implementation
# Learn more from Reinforcement Learning: An Introduction (p271)
# by Sutton & Barto
import tensorflow as tf
import gym
import numpy as np
from gym import wrappers
@Adriel-M
Adriel-M / CartPole-REINFORCE-MCMC.py
Last active November 25, 2018 08:10
REINFORCE: Monte Carlo Policy Gradient solution to Cartpole-v0 with no hidden layer.
# REINFORCE: Monte Carlo Policy Gradient Implementation
# Learn more from Reinforcement Learning: An Introduction (p271)
# by Sutton & Barto
import tensorflow as tf
import gym
import numpy as np
from gym import wrappers
@Adriel-M
Adriel-M / CartPole-REINFORCE-MCMC.py
Last active May 22, 2021 14:44
REINFORCE: Monte Carlo Policy Gradient solution to Cartpole-v0 with a hidden layer.
# REINFORCE: Monte Carlo Policy Gradient Implementation
# Learn more from Reinforcement Learning: An Introduction (p271)
# by Sutton & Barto
import tensorflow as tf
import gym
import numpy as np
from gym import wrappers
@Adriel-M
Adriel-M / CartPole-ELS.py
Created April 24, 2017 21:58
Evolutionary Learning Strategy Solution to CartPole-v1.
# Evolutionary Learning Strategy Implementation
# Learn more from https://blog.openai.com/evolution-strategies/
import gym
import numpy as np
from gym import wrappers
# GLOBAL SETTINGS
RNG_SEED = 8
# ENVIRONMENT = "CartPole-v0"
@Adriel-M
Adriel-M / CartPole-ELS.py
Last active April 24, 2017 21:58
Evolutionary Learning Strategy Solution to CartPole-v0.
# Evolutionary Learning Strategy Implementation
# Learn more from https://blog.openai.com/evolution-strategies/
import gym
import numpy as np
from gym import wrappers
# GLOBAL SETTINGS
RNG_SEED = 8
ENVIRONMENT = "CartPole-v0"
@Adriel-M
Adriel-M / LunarLander-ELS.py
Last active May 12, 2017 01:34
Evolutionary Learning Strategy Solution to LunarLander-v2 with settings to ensure passing OpenAI's requirements and ability to limit steps.
# Evolutionary Learning Strategy Implementation
# Learn more from https://blog.openai.com/evolution-strategies/
import gym
import numpy as np
from gym import wrappers
# GLOBAL SETTINGS
RNG_SEED = 8
POPULATION_SIZE = 100 # Population size
@Adriel-M
Adriel-M / LunarLander-ELS.py
Last active April 16, 2017 21:51
Evolutionary Learning Strategy Solution to LunarLander-v2 with settings to ensure passing OpenAI's requirements.
# Evolutionary Learning Strategy Implementation
# Learn more from https://blog.openai.com/evolution-strategies/
import gym
import numpy as np
from gym import wrappers
# GLOBAL SETTINGS
RNG_SEED = 8
POPULATION_SIZE = 100 # Population size