Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@peroon
peroon / gist:8f91cff6e8ec8d49a4212ac17514517f
Last active July 13, 2018 18:57
Image Classification Techniques (Writing...)

TODO

  • Mean Teacher (semi supervised)
  • Mixup
    • merge images and labels, then learn
  • Pyramid Net
    • CNN
  • Random Erasing
    • That's it
  • Test time augmentation
@peroon
peroon / random_forest.py
Created May 17, 2018 12:37
Kaggle Titanic by Random Forest
# -*- coding: utf-8 -*-
import re
import numpy as np
import pandas as pd
from sklearn.ensemble import RandomForestClassifier
# column name
PassengerId = 'PassengerId'
Survived = 'Survived'
using UnityEngine;
using System.Collections;
using DG.Tweening;
// ランダムで目パチ
public class Mepachi : MonoBehaviour {
// 調整パラメータ
public int blendShapeIndex = 0;
from PyQt5.QtCore import Qt
class LabelingTool(QWidget):
def __init__(self):
super().__init__()
def keyPressEvent(self, event):
key = event.key()
if key == Qt.Key_Escape:
print('esc')
def Combination(n, m):
f = math.factorial
return f(n) // f(m) // f(n - m)
# -*- coding: utf-8 -*-
import sys
import os
def print2d(M):
print()
for row in M:
print(row)
def get_intersections(p0, p1):
"""
:type p0: complex
:type p1: complex
:return:
"""
import re
re.split(r"[ ,.]", s):
@peroon
peroon / complex.py
Created April 28, 2017 06:56
Use complex instead of Vector2D
# add
A = 2 + 3j
B = 4 + 5j
print(A + B)
# sub
A = 2 + 3j
B = 4 + 5j
print(A - B)