How to import a time series data as calibration data in deep network quantizer?
조회 수: 2 (최근 30일)
이전 댓글 표시
Input size is 15X5 and output is 1x1 at every instent.
댓글 수: 0
답변 (1개)
TED MOSBY
2024년 5월 3일
Hi Krishna,
As you did not provide any information of your data and the network or model you used, I have listed below some general steps that can help you to use your data as calibration data:
Preprocessing the data:
You can use functions like “readtable” or “readmatrix”.Split your data into training, validation, and testing sets. The calibration data for Deep Network Quantizer typically comes from the training set or a subset of it.
data = readmatrix('your_data.csv');
% Assuming 'data' is organized with features along columns and samples along rows
X = data(:, 1:end-1); % Features
Y = data(:, end); % Targets
% Reshape or adjust X and Y to match your network's input and output requirements
Convert your data to MATLAB’s “dlarray ” (for more information on this refer to documentation attached at the end) and create a network
To use the data for calibration in Deep Network Quantizer, you need to create a dlarray:
% Assuming 'calibrationData' (subset of your training data) is your prepared calibration dataset
% and 'net' is your trained network
dlX = dlarray(calibrationData, 'SSCB'); % Example format, adjust 'SSCB' as needed(refer documentation for information on input parameters)
dlnet = dlnetwork(net);
Calibrate
executionEnvironment = 'cpu'; % Choose 'cpu' or 'gpu'
calibrate(dlnet, dlX, executionEnvironment);
Further you may refer to the following documentations to know more details about the used functions.
How to use the Deep Network Quantizer app:
Information on Deep learning array for customization(dlarray):
Information on how to calibrate:
Hope this answers your query!
Best,
Kalash
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!