Skip to content

Instantly share code, notes, and snippets.

View Kajiyu's full-sized avatar

Yuma Kajihara Kajiyu

  • OIST
  • Okinawa
View GitHub Profile
@Kajiyu
Kajiyu / dep.py
Created March 7, 2019 13:47
Differential extrinsic plasticity
import numpy as np
class DEPNetwork:
'''
Neural network trained with Differential extrinsic plasticity.
[1] Novel plasticity rule can explain the development of sensorimotor intelligence. PNAS. 2015
[2] Behavior as broken symmetry in embodied self-organizing robots. ECAL. 2013
'''
def __init__(self, action_size, lr=0.1):
@Kajiyu
Kajiyu / sn_for_rnn.py
Created August 9, 2018 09:56
Pytorch Implementation of "Spectral Normalization" for Vanilla RNN.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Most of this code is borrowed by niffler92's project.
https://github.com/niffler92/SNGAN
"""
@Kajiyu
Kajiyu / file2.txt
Created June 27, 2016 05:23
Django製apiをherokuでデプロイする(自分用メモ) ref: http://qiita.com/Kajiyu/items/446169b1a0da1e562199
remote: raise ImproperlyConfigured("You're using the staticfiles app "
remote: django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
remote:
remote: ! Error while running '$ python manage.py collectstatic --noinput'.
remote: See traceback above for details.
remote:
remote: You may need to update application code to resolve this error.
remote: Or, you can disable collectstatic for this application:
remote:
remote: $ heroku config:set DISABLE_COLLECTSTATIC=1