How to use trained neural network using new data

조회 수: 20 (최근 30일)
AHMAD FATHURRAHMAN
AHMAD FATHURRAHMAN 2023년 1월 15일
댓글: Max Newman 2024년 6월 4일
Hello esteemed friends, I need help. How can I use neural network to generate an output using 2 or 3 random new input data on trained neural network? For example using the abalone_dataset, I would train the neural network using input data (length, diameter, height, etc.) and the target data. After that, using only 2 to 3 input data (length and height only) to generate an output using the trained neural network.
  댓글 수: 3
AHMAD FATHURRAHMAN
AHMAD FATHURRAHMAN 2023년 1월 16일
I'm still new to the neural network but if the Deep Network Designer can satisfied with the requirements that I need. I really appreciate if you can show me the way.
Rajeev
Rajeev 2023년 1월 16일
Based on what you have mentioned, you are trying to exploit 'transfer learning'.
You can refer to this link Get Started with Transfer Learning - MATLAB & Simulink (mathworks.com) to know more about it.
If you already have a pre-trained model, you can import it to the Deep Network Designer and modify the classification and output layers to get the output for your data.
Can you share the trained model that you want to modify?

댓글을 달려면 로그인하십시오.

채택된 답변

Varun Sai Alaparthi
Varun Sai Alaparthi 2023년 1월 19일
Hello Ahmad,
I understand that you are looking for ways to get output from your trained model by giving random inputs. The function depends on your network type.
If you are using a shallow network, you can directly do
Output = net(X);
If you are using dlnetwork or a network trained using trainNetwork you can use the predict’ function to get the output.
Output = predict(net,images);
If you have any further queries, please feel free to reply to my answer.
Sincerely,
Varun
  댓글 수: 1
Max Newman
Max Newman 2024년 6월 4일
I trained a signal classifier but when I use predict it says that the "The input images must have a size of [96 64 1]." How can I use a trained network on signal data.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by