Skip to content

Commit

Permalink
Deployed 4cd3765 with MkDocs version: 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
andy6804tw committed Aug 18, 2024
1 parent ee41156 commit cd81231
Show file tree
Hide file tree
Showing 218 changed files with 39,346 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
484 changes: 484 additions & 0 deletions 1.全民瘋AI系列2.0目標介紹/README.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
593 changes: 593 additions & 0 deletions 11.SVM/11.1.SVM(Classification-iris).ipynb

Large diffs are not rendered by default.

401 changes: 401 additions & 0 deletions 11.SVM/11.2.SVR(Regression).ipynb

Large diffs are not rendered by default.

792 changes: 792 additions & 0 deletions 11.SVM/README.html

Large diffs are not rendered by default.

Binary file added 11.SVM/image/img11-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 11.SVM/image/img11-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 11.SVM/image/img11-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 11.SVM/image/img11-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 11.SVM/image/img11-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 11.SVM/image/img11-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
649 changes: 649 additions & 0 deletions 12.決策樹/12.1.決策樹(Classification-iris).ipynb

Large diffs are not rendered by default.

787 changes: 787 additions & 0 deletions 12.決策樹/12.2.決策樹(Regression).ipynb

Large diffs are not rendered by default.

690 changes: 690 additions & 0 deletions 12.決策樹/README.html

Large diffs are not rendered by default.

Binary file added 12.決策樹/image/img12-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 12.決策樹/image/img12-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 12.決策樹/image/img12-11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 12.決策樹/image/img12-12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 12.決策樹/image/img12-13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 12.決策樹/image/img12-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 12.決策樹/image/img12-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 12.決策樹/image/img12-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 12.決策樹/image/img12-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 12.決策樹/image/img12-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 12.決策樹/image/img12-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 12.決策樹/image/img12-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 12.決策樹/image/img12-9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
521 changes: 521 additions & 0 deletions 16.Stacking/16.house-price-prediction-stacking.ipynb

Large diffs are not rendered by default.

617 changes: 617 additions & 0 deletions 16.Stacking/README.html

Large diffs are not rendered by default.

Binary file added 16.Stacking/image/img16-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 16.Stacking/image/img16-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
393 changes: 393 additions & 0 deletions 17.LightGBM/17.creditcard-fraud-detection-lightgbm.ipynb

Large diffs are not rendered by default.

589 changes: 589 additions & 0 deletions 17.LightGBM/README.html

Large diffs are not rendered by default.

Binary file added 17.LightGBM/image/img17-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 17.LightGBM/image/img17-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 17.LightGBM/image/img17-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
611 changes: 611 additions & 0 deletions 2.快來探索AI的世界/README.html

Large diffs are not rendered by default.

Binary file added 2.快來探索AI的世界/image/img2-1.png
Binary file added 2.快來探索AI的世界/image/img2-10.png
Binary file added 2.快來探索AI的世界/image/img2-2.png
Binary file added 2.快來探索AI的世界/image/img2-3.png
Binary file added 2.快來探索AI的世界/image/img2-4.png
Binary file added 2.快來探索AI的世界/image/img2-5.png
Binary file added 2.快來探索AI的世界/image/img2-6.png
Binary file added 2.快來探索AI的世界/image/img2-7.png
Binary file added 2.快來探索AI的世界/image/img2-8.png
Binary file added 2.快來探索AI的世界/image/img2-9.png
18,159 changes: 18,159 additions & 0 deletions 20.Auto-Sklearn/20.Auto-sklearn(iris-classification).ipynb

Large diffs are not rendered by default.

786 changes: 786 additions & 0 deletions 20.Auto-Sklearn/README.html

Large diffs are not rendered by default.

Binary file added 20.Auto-Sklearn/image/img20-1.png
Binary file added 20.Auto-Sklearn/image/img20-10.png
Binary file added 20.Auto-Sklearn/image/img20-11.gif
Binary file added 20.Auto-Sklearn/image/img20-2.png
Binary file added 20.Auto-Sklearn/image/img20-3.png
Binary file added 20.Auto-Sklearn/image/img20-4.png
Binary file added 20.Auto-Sklearn/image/img20-5.png
Binary file added 20.Auto-Sklearn/image/img20-6.png
Binary file added 20.Auto-Sklearn/image/img20-7.png
Binary file added 20.Auto-Sklearn/image/img20-8.png
Binary file added 20.Auto-Sklearn/image/img20-9.png
519 changes: 519 additions & 0 deletions 21.Optuna/21.optuna-tutorial.ipynb

Large diffs are not rendered by default.

664 changes: 664 additions & 0 deletions 21.Optuna/README.html

Large diffs are not rendered by default.

Binary file added 21.Optuna/image/img21-1.png
Binary file added 21.Optuna/image/img21-2.png
Binary file added 21.Optuna/image/img21-3.png
Binary file added 21.Optuna/image/img21-4.png
1,340 changes: 1,340 additions & 0 deletions 22.Plotly-Express/22.Plotly-Express.ipynb

Large diffs are not rendered by default.

672 changes: 672 additions & 0 deletions 22.Plotly-Express/README.html

Large diffs are not rendered by default.

Binary file added 22.Plotly-Express/image/img22-1.png
Binary file added 22.Plotly-Express/image/img22-10.png
Binary file added 22.Plotly-Express/image/img22-11.png
Binary file added 22.Plotly-Express/image/img22-12.png
Binary file added 22.Plotly-Express/image/img22-13.png
Binary file added 22.Plotly-Express/image/img22-14.png
Binary file added 22.Plotly-Express/image/img22-2.png
Binary file added 22.Plotly-Express/image/img22-3.png
Binary file added 22.Plotly-Express/image/img22-4.gif
Binary file added 22.Plotly-Express/image/img22-4.png
Binary file added 22.Plotly-Express/image/img22-5.png
Binary file added 22.Plotly-Express/image/img22-6.gif
Binary file added 22.Plotly-Express/image/img22-7.png
Binary file added 22.Plotly-Express/image/img22-8.gif
Binary file added 22.Plotly-Express/image/img22-9.gif
487 changes: 487 additions & 0 deletions 24.不能忽視的過擬合與欠擬合/README.html

Large diffs are not rendered by default.

536 changes: 536 additions & 0 deletions 26.交叉驗證 K-Fold Cross-Validation/README.html

Large diffs are not rendered by default.

708 changes: 708 additions & 0 deletions 27.機器學習常犯錯的十件事/README.html

Large diffs are not rendered by default.

408 changes: 408 additions & 0 deletions 28.儲存訓練好的模型/28.XGBoost(Classification-iris).ipynb

Large diffs are not rendered by default.

647 changes: 647 additions & 0 deletions 28.儲存訓練好的模型/README.html

Large diffs are not rendered by default.

Binary file added 28.儲存訓練好的模型/image/img28-1.png
Binary file added 28.儲存訓練好的模型/image/img28-2.png
Binary file added 28.儲存訓練好的模型/xgboost-iris.pgz
Binary file not shown.
Binary file added 28.儲存訓練好的模型/xgboost-iris.pickle
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# -*- coding: UTF-8 -*-
import pickle
import gzip

# 載入Model
with gzip.open('./model/xgboost-iris.pgz', 'rb') as f:
xgboostModel = pickle.load(f)

def predict(input):
pred=xgboostModel.predict(input)[0]
return pred
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Flask
Flask-Cors
numpy
scikit-learn
xgboost
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# -*- coding: UTF-8 -*-
import numpy as np
import model

from flask import Flask, request, jsonify
from flask_cors import CORS

app = Flask(__name__)
CORS(app)

@app.route('/')
def index():
return 'hello!!'

@app.route('/predict', methods=['POST'])
def postInput():
# 取得前端傳過來的數值
insertValues = request.get_json()
x1=insertValues['sepalLengthCm']
x2=insertValues['sepalWidthCm']
x3=insertValues['petalLengthCm']
x4=insertValues['petalWidthCm']
input = np.array([[x1, x2, x3, x4]])

result = model.predict(input)

return jsonify({'return': str(result)})


if __name__ == '__main__':
app.run(host='0.0.0.0', port=3000, debug=True)
Loading

0 comments on commit cd81231

Please sign in to comment.