Skip to content

Instantly share code, notes, and snippets.

View Vivraan's full-sized avatar
💠

Shivam Mukherjee Vivraan

💠
View GitHub Profile
@Vivraan
Vivraan / alt_text.md
Created June 28, 2023 15:59
Alt text for Become Carbon Literate workshop Group 4 problem statement

Group 4 -- Travel and Staff Behaviour & Awareness Transport

  • KU has several schemes for staff such as interest-free loans for public transport seasonal tickets.
  • KU bus services is hybrid since 2016 and come under a low-emission bus scheme. This has led to 30% low carbon emissions and 70-90% fewer pollutants.
  • Impact of KU buses monitored on a regular basis by a transport research lab
  • Car travel and parking -- KU recommends shifting staff behaviour from using cars to active travel in order to reduce congestion and improve air quality.
  • Bike-to-work support is provided by the University where staff can buy discounted bikes and get interest-free loans.
  • Bike repair and maintenance services such as Dr. Bike are available at the university.
  • Staff and students 14 hours course available on bike fit for purpose
@Vivraan
Vivraan / learning_model.py
Created June 26, 2023 01:11
ChatGPT's best attempt at the two-stage reinforcement learning task analysis for the paper by Daw et al. 2011.
import torch
import torch.optim as optim
import torch.nn.functional as F
import pandas as pd
class LearningModel:
def __init__(self, num_first_stage_choices=2, num_second_stage_choices=2, num_trials=2, num_epochs=1000):
# Initialize model parameters (w, alpha, lambda, beta, stay_bias) and any other necessary variables
self.num_first_stage_choices = num_first_stage_choices