Coder Social home page Coder Social logo

SongLei 😉

from time import sleep
import school_env_builder
from random import randint


class FoolishStudent:
  
  def __init__(self, agent_name):
    self.agent_name = agent_name
    self.env = school_env_builder.build()
    
  def study(self, epochs):
    for _ in range(epochs):
      state = self.env.reset()
      while True:
        action = randint(0, self.env.action_space.size()-1)
        next_state, reward, done, _ = self.env.step(action)
        if reward < 0:
          print('You are so stupid')
        if done:
          break
        state = next_state
        
  def take_a_break(self, epochs):
    for _ in range(epochs):
      sleep(1)
        
        
if __name__ == '__main__':
  sl = FoolishStudent('songlei')
  for day in range(365):
    sl.study(0)
    sl.take_a_break(10000000000)

Lei's Projects

bayesian-neural-networks icon bayesian-neural-networks

Pytorch implementations of Bayes By Backprop, MC Dropout, SGLD, the Local Reparametrization Trick, KF-Laplace, SG-HMC and more

bbo icon bbo

Black-box optimization for real-world scenario

easytorch icon easytorch

基于Python的numpy实现的简易深度学习框架,包括自动求导、优化器、layer等的实现。

lamcts icon lamcts

The release codes of LA-MCTS with its application to Neural Architecture Search.

nju-health-report icon nju-health-report

用于在 GitHub Action 上部署南京大学每日健康填报自动打卡脚本

ribbo icon ribbo

Official implementation of "Reinforced In-Context Black-Box Optimization"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.