Skip to content

Instantly share code, notes, and snippets.

View chairco's full-sized avatar
🏠
Working from home

Jason chairco

🏠
Working from home
View GitHub Profile

QuerySet 方法

  • filter: = 等於
  • exclude: != 不等於
  • distinct: 去除重複

filter, exclude 方法內參數

  • __exact: 精確等於: 'aaa'
@chairco
chairco / asyncio-producer-consumer-task_done.py
Created August 14, 2018 08:13 — forked from tomschr/asyncio-producer-consumer-task_done.py
Producer/Consumer pattern for asyncio (Python >=3.4)
# Original source from http://asyncio.readthedocs.io/en/latest/producer_consumer.html
# Rewritten for Python >=3.4
import asyncio
import random
@asyncio.coroutine
def produce(queue, n):
for x in range(n):
@chairco
chairco / conda.info.md
Created June 20, 2018 00:57
conda 紀錄

issue:

symbol lookup error: /home/jason/anaconda3/lib/python3.6/site-packages/numpy/core/../../../../libmkl_intel_thread.so: undefined symbol: omp_get_num_procs

solved: conda/conda#2031


@chairco
chairco / memo.md
Created June 19, 2018 03:53
arduino practice

控制 led 燈

  • 1411 modem, command
  • 1413 debug, upload program
#define BAUDRATE 19200
#define LED_PIN 13

void setup() {
@chairco
chairco / asgi-zh_TW.rst
Last active December 7, 2020 08:45
ASGI 規範中文版

ASGI (Asynchronous Server Gateway Interface) Specification

Version: 2.0 (2017-11-28)

Abstract 摘要 ========

This document proposes a standard interface between network protocol

隨機森林

特別寫了一篇來回答,主要因為 DT, RF 說真的不太熟,所以很感謝學姊問這個深度問題,不過剛剛都在開會所以花了些時間整理一下資料與發表一點淺見。

關於 DT 的一些觀念我是來自林軒田老師機器學習技法,但老實講聽得很隨便。林老師課程有興趣網路有,不過偷懶找到網路上筆記可以快速參考。另外讀過一本 Hands on machine learning tensorflow,裡面提到的 DT, RF 非常清楚也把內容同時傳給你。剛剛搜尋看到 CH.Tseng 整理的文章覺得裡面範例也很不錯。

總歸來說多數都是 Python 實作,所以程式碼部分可以跳過就看觀念吧。

Q1: RF 可以用來做連續行的預測嗎?

How to install OpenCV 3.1 on Ubuntu 14.04 64bits

Update latest packages and installed

$ sudo apt-get update
$ sudo apt-get upgrade

apt-get update - 更新最新的套件資訊 apt-get upgrade - 更新套件

# Open CV 3
sudo apt-get -y install libtiff5-dev
sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev
sudo apt-get -y install libxine2-dev libv4l-dev
sudo apt-get -y install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
sudo apt-get -y install qt5-default libgtk2.0-dev libtbb-dev
sudo apt-get -y install libatlas-base-dev
@chairco
chairco / ubuntu_agnoster_install.md
Created March 29, 2018 01:49 — forked from renshuki/ubuntu_agnoster_install.md
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH

@chairco
chairco / machine_learning_math.md
Last active March 23, 2018 06:58
機器學習相關數學整理