フィルターのクリア

Best practice for data normalization when using import model from Keras to predict ?

6 ビュー (過去 30 日間)
Tuong Nguyen Minh
Tuong Nguyen Minh 2020 年 9 月 1 日
回答済み: Madhav Thakker 2020 年 9 月 15 日
I have train a deep learning model in Keras where my input data is normalize by using the standard scaler
If I import that model into matlab to use it to predict I also have to use the standard scaler.
Now I have two choices in mind to do this
1/ Call the standard scaler from python
2/ Use Matlab built in function
My Matlab version is 2020a
What choice should I proceed with and how to implement it
Thank you very much

回答 (1 件)

Madhav Thakker
Madhav Thakker 2020 年 9 月 15 日
Hi Tuong,
I understand that you want to do the preprocessing as done with the training data by using StandardScaler of sklearn. The same functionality can be done with MATLAB zscore. To replicate the behavior of the scipy function, you will have to set flag input as 1, to use population standard deviation.
Hope this helps.

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by