原创 Kaggle房價預測進階版/bagging/boosting/AdaBoost/XGBoost

所謂進階篇,無非是從模型的角度考慮,用了bagging、boosting(AdaBoost)、XGBoost三個牛X的模型,或者說是模型框架。 前期的數據處理階段,即step1/2/3和 kaggle房價預測/Ridge/Random

原创 用DNN對Iris數據分類的代碼--tensorflow--logging/monitoring/earlystopping/visualizing

本博客是對 用深度神經網絡對Iris數據集進行分類的程序–tensorflow 裏面的代碼進行修改,使其可以記錄訓練日誌,監控訓練指標,設置early stopping, 並在TensorBoard中進行可視化. 注意和原程序進行對比

原创 用卷積神經網絡對mnist進行數字識別程序(tensorflow)

#下載數據集 from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("MNIST_data",one_ho

原创 機器學習筆試題目

1、常見的生成式模型和判別式模型有哪些? 生成式模型:HMM、樸素貝葉斯 判別式模型:SVM、最大熵模型、神經網絡、決策樹、條件隨機場 2、EM算法的基本概念和應用場景? EM算法是在概率模型中尋找參數最大似然估計或者最大後驗估

原创 Sublime Text 3 3126 註冊碼

Sublime Text 3 3126 註冊碼 親測第一個就能用~~~ —– BEGIN LICENSE —– Michael Barnes Single User License EA7E-821385 8A353C41 872

原创 tensorflow的contrib的基本用法和自定義模型

tensorflow的contrib.learn的基本用法 import tensorflow as tf # NumPy is often used to load, manipulate and preprocess data. im

原创 tensorflow實現線性迴歸的完整程序

ubuntu version:16.04 LTS tensorflow version:1.1.0 python version:2.7.12 import numpy as np import tensorflow as tf

原创 用深度神經網絡對boston housing data進行迴歸預測的程序--tensorflow

"""DNNRegressor with custom input_fn for Housing dataset.""" from __future__ import absolute_import from __future__ im

原创 ImportError: No module named _tkinter, please install the python-tk package

ubuntu運行散點圖,不出圖像. python默認沒有安裝tkinter,在終端輸入下面的代碼安裝即可. sudo apt-get install python-tk

原创 tensorflow下對MNIST數據集進行識別的程序代碼

# 下載mnist數據集: from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("MNIST_data/