Skip to content

Instantly share code, notes, and snippets.

View ryokamoi's full-sized avatar

Ryo Kamoi ryokamoi

View GitHub Profile
@ryokamoi
ryokamoi / llm.bib
Last active April 24, 2024 17:46
BibTex file for LLMs
comment = {Proprietary Models}
comment = {GPT-4}
@article{openai2023gpt4,
title={GPT-4 Technical Report},
author={OpenAI},
journal={arXiv preprint arXiv:2303.08774},
year={2023}
}
@ryokamoi
ryokamoi / .vscode
Created October 7, 2021 13:29
.vscode for python
{
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": ["--max-line-length", "119", "--ignore", "W293,E226,E231,E252,E303", "--per-file-ignores", "*__init__.py:W292,F401,F403"],
"python.linting.mypyEnabled": true,
"python.pythonPath": "/Users/kamoirk/.pyenv/versions/3.8.6/bin/python",
}
# coding:utf-8
import numpy as np
import math
import random
import matplotlib.pyplot as plt
mu = np.arange(0, 1.01, 0.125) # the positions of the Gaussian basis function
S = 0.1 # the spatial factor of the Gaussian basis function
ALPHA = 0.1 # the presition parameter of the prior
BETA = 9 # the presition parameter of the noise
#coding: UTF-8
import math
#try文はじめて使ってみた
while True:
try:
n = int(raw_input("素数かどうか判定します。2以上の整数を入力してください:"))
break
except ValueError:
print "不適切な値が入力されました。正しい値を入力してください。"