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
name := "scalatest_study" | |
version := "1.0" | |
scalaVersion := "2.13.2" | |
libraryDependencies += "org.scalatest" %% "scalatest" % "3.1.1" % "test" | |
libraryDependencies += "org.mockito" % "mockito-core" % "3.3.3" % "test" |
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
# References | |
# https://github.com/kamadak/fiml-py | |
# http://koumurayama.com/koujapanese/missing_data.pdf | |
# http://fixxman.hatenablog.com/entry/2015/10/10/224955 | |
import numpy as np | |
import scipy as sp | |
import scipy.optimize | |
def fiml(data): |
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
# coding: utf-8 | |
# In[ ]: | |
# JUMAN++版 | |
# ツイートを集める | |
# https://github.com/sixohsix/twitter |
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
# ツイートを集める | |
# https://github.com/sixohsix/twitter | |
# 環境変数にトークンとか入れておく | |
import os | |
from twitter import * | |
import time | |
# Janomeの形態素解析 | |
# https://github.com/mocobeta/janome | |
from janome.tokenizer import Tokenizer |
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 os | |
import sys | |
import argparse | |
from flask import Flask, render_template, request, redirect, url_for, jsonify | |
from werkzeug.utils import secure_filename | |
import numpy as np | |
import tensorflow as tf |
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
%YAML:1.0 | |
#-------------------------------------------------------------------------------------------- | |
# Camera Parameters. Adjust them! | |
#-------------------------------------------------------------------------------------------- | |
# Camera calibration and distortion parameters (OpenCV) | |
Camera.fx: 1467.836136 | |
Camera.fy: 1471.712197 | |
Camera.cx: 941.204100 |
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
require 'torch' | |
torch.manualSeed(114514) | |
-- choose a dimension | |
N = 5 | |
-- create a random NxN matrix | |
A = torch.rand(N, N) |
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 chainer | |
from chainer import Function, gradient_check, report, training, utils, Variable | |
from chainer import datasets, iterators, optimizers, serializers | |
from chainer import Link, Chain, ChainList | |
import chainer.functions as F | |
import chainer.links as L | |
from chainer.training import extensions | |
class MyModel(Chain): |
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
# coding utf-8 | |
import copy | |
import random | |
from math import * | |
import matplotlib.pyplot as plt | |
class Agent(): | |
def __init__(self, towns, roads, start, pheromone): | |
# value |
NewerOlder