原创 fastai v1.0使用示例

在互聯網上游蕩了半天,沒找到多少fastai的v1.0版本的教程,0.7的有很多,但是1.0的fastai幾乎是一個全新的fastai,所以這裏寫下我的探索,歡迎共同探討(我的email:[email protected])。 加載數

原创 LeetCode int數字倒置,快於99%的

class Solution: def reverse(self, x): """ :type x: int :rtype: int """ te

原创 LeetCode 最長迴文字符串檢測

寫了兩個方法,一個7000ms多一個5000ms多,比較菜,看了最厲害的50ms的代碼,直接寫幾萬個字符串做字典查找,學不來學不來。。。。。。 import numpy as np class Solution: def l

原创 人臉數據庫收集——深度學習

http://www.umdfaces.io/ CASIA-WebFace MegaFace WLFDB 湯曉歐實驗室的CelebA(20萬+), 標註信息豐富. 現在可以直接從百度網盤下載 Large-scale CelebFace

原创 Logistic迴歸numpy版本

#!python #coding=UTF-8 # logistic # sigmod # O(z)=1/(1+e(-z)) # w:=w+af(w) #Logistic from numpy import *

原创 計算bbox的mAP的代碼

import numpy as np from sklearn.utils.linear_assignment_ import linear_assignment def iou(bb_test, bb_gt): '''

原创 lightgbm示例代碼——機器學習

import sklearn as sk import gc import pandas as pd import numpy as np import lightgbm as lgb df_train = pd.read_csv('

原创 mxnet簡單網絡示例——深度學習

#network data = mx.sym.Variable('data') fc1=mx.sym.FullyConnected(data,name='fc1',num_hidden=128) act1=mx.sym.Activat

原创 樸素貝葉斯分類numpy版本——深度學習

#!python3 #這裏使用樸素貝葉斯算法 #即貝葉斯算法的簡化版 from numpy import * def loadDataSet(): postingList=[['my','dog','had','flea'

原创 C++ exe傳參數只顯示第一個字符解決方案--C++學習

vs2010新建的工程默認是UNICODE格式的; 你寫代碼的時候按照UNICODE的格式編碼應該就不會出現上面的問題的。 或者你把工程設置成Use Multi-Byte Character Set,方法如下: Project/工程

原创 KNN最近鄰算法numpy版本——深度學習

#!python from numpy import * import operator from os import listdir def createDataSet(): group = array([[1.0,1.

原创 webpy加apache2搭建簡單網站

apt-get install apache2 sudo apt-get install libapache2-mod-wsgi 編輯/etc/apache2/sites-available/default,在<VirtualH

原创 爬蟲防ban設置--爬蟲

setting.py: # Scrapy settings for kuaidaili project # # For simplicity, this file contains only the most important se

原创 ubuntu16.04多次遇到apt-get update錯誤——Linux學習

我把那些第三方的軟件更新全部勾去之後就沒問題了:

原创 string,char,const char互相轉化--C++學習

string轉const char* string s = “abc”; const char* c_s = s.c_str(); const char*轉string 直接賦值即可 const char* c_s = “ab