>>> list.__doc__
"list() -> new empty list\nlist(iterable) -> new list initialized from iterable's items"
>>> list().__doc__
"list() -> new empty list\nlist(iterable) -> new list initialized from iterable's items"
>>> help(list)
Help on class list in module builtins:
class list(object)
| list() -> new empty list
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 sys | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from scipy.spatial import ConvexHull | |
eps = np.random.rand(1)/100 | |
def on_segment(p, q, r): | |
return ((q[0] <= max(p[0], r[0])) and (q[0] >= min(p[0], r[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
import numpy as np | |
import becca.brain as becca_brain | |
from becca.base_world import World as BaseWorld | |
import gym | |
class World(BaseWorld): | |
def __init__(self, env_name, seed=None): | |
BaseWorld.__init__(self) | |
self.name = 'gym_cartPole' |
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
const axios = require('axios'); | |
// Make a request for a user with a given ID | |
var server_url = 'http://127.0.0.1:5000' | |
var url = server_url + '/v1/envs/'; | |
var msg = {'env_id': 'CartPole-v0'}; | |
let axiosConfig = { | |
headers: { | |
'Content-Type': 'application/json', |
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
"use strict"; | |
var axios = require("axios"); | |
var Client = (function () { | |
function Client(remote) { | |
this.remote = remote; | |
this.shouldLog = (process.env.SHOULD_LOG === "true"); | |
if (this.shouldLog) { | |
console.log("Logging enabled"); | |
} | |
else { |
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
"use strict"; | |
var gymHTTPClient_1 = require("/home/markroxor/Documents/RL/gym-http-api/binding-js/dist/lib/gymHTTPClient"); | |
var RandomDiscreteAgent = (function () { | |
function RandomDiscreteAgent(n) { | |
this.n = n; | |
} | |
RandomDiscreteAgent.prototype.act = function (observation, reward, done) { | |
return Math.floor(Math.random() * this.n); | |
}; | |
return RandomDiscreteAgent; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
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
Leader - Akshay | |
Will take care of recruitment and who fights in CW. | |
Senior player - Scorpion | |
Will take care of recruitment and is the person of contact for any issues. | |
Members - | |
1. Yogi | |
2. Majin Buu | |
3. DJ |