Skip to content

Instantly share code, notes, and snippets.

View sailfish009's full-sized avatar

sailfish009

  • freelancer
  • South Korea
View GitHub Profile
# nginx 1.17.10, openssl 1.1.1f, pcre 8.44, zlib 1.2.11, perl 5.26.1
./configure --prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
--modules-path=/usr/lib/nginx/modules \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/run/nginx.lock \
--user=nginx \
--prefix=/usr --openssldir=/usr/lib/ssl --libdir=lib/x86_64-linux-gnu no-idea no-mdc2 no-rc5 no-zlib no-ssl3 enable-unit-test no-ssl3-method enable-rfc3779 enable-cms
# https://forums.fast.ai/t/focalloss-with-multi-class/35588/2
def one_hot_embedding(labels, num_classes):
return torch.eye(num_classes)[labels.data.cpu()]
class myCCELoss(nn.Module):
def __init__(self):
super(myCCELoss, self).__init__()
sudo pip uninstall matplotlib
sudo apt-get install python-matplotlib
@sailfish009
sailfish009 / spawn.cpp
Created March 26, 2020 04:04 — forked from konstantint/spawn.cpp
Example of communication with a subprocess via stdin/stdout
//
// Example of communication with a subprocess via stdin/stdout
// Author: Konstantin Tretyakov
// License: MIT
//
#include <ext/stdio_filebuf.h> // NB: Specific to libstdc++
#include <sys/wait.h>
#include <unistd.h>
#include <iostream>
https://www.learningsomethingnew.com/vue-cli-router-vuetify-plugins
npm install acorn --no-bin-links
https://medium.com/repro-repo/build-pytorch-from-source-on-ubuntu-18-04-1c5556ca8fbf
http://joschu.net/blog/opinionated-guide-ml-research.html
ML 연구에 대한 의견 가이드
게시일 : 2020/01/24
← 블로그 인덱스로 돌아 가기
원래 2017 년 12 월에 OpenAI Fellows 프로그램을 위해이 안내서를 작성했습니다.
이 글에서, 나는 연구를하고 다른 사람들을 조언 한 경험을 바탕으로 기계 학습 (ML) 분야의 신입 연구원들에게 조언을한다. 조언은 문제를 선택하고 시간을 구성하는 방법을 다룹니다. 또한 비슷한 주제에 대한 다음과 같은 에세이를 권장합니다.