While trying to import data to neural network fitting and after selecting predictors when browsing data fore response Matlab automatically changes data in predictor then error

5 件のコメント

From the error message that you have provided, it appears that the error occurred due to using the same variable as both predictor and response,which is not permitted in the application.From the context I understand that you are facing issues in loading the variables(i.e predictor and response variable).Firstly,I would suggest you to try restarting the application,MATLAB and attempt the import process again.
If the issue presists,please feel free to contact.
Regards
Venkat Siddarth V.
I tried to restart application and do the process again
same issue still happenning
after loading pedictors , both the predictors and responses show the same data(predictor data set)
then after loading the responses , it automatically changes both data sets to one set only (responses data set) .
then the error happens
Ranjeet
Ranjeet 2023 年 6 月 9 日
編集済み: Ranjeet 2023 年 6 月 9 日
Can you provided the MATLAB release you are facing this issue in?
MATLAB R2023a acadimic use
Just now updated to R2023b and still facing same error and same issue while importing data , it does automatically change data sets to one set only

サインインしてコメントする。

回答 (1 件)

Yash
Yash 2023 年 7 月 18 日
Hello Mohammad,
The issue you are experiencing is due to the Import Wizard that converts the table from the input file into a matrix, named "data". This variable "data" is then overwritten when you try to load the next input file, as the variable created is always named "data".
The following steps can help resolve the issue.
  1. Open the Neural Net Fitting App and click on the "Import" icon.
  2. This opens the Import Data from Workspace window. Click on the "Browse" button next to the "Predictors:" field and select the Predictors input file.
  3. This opens a new window named Import Wizard, where the preview of the matrix that has been converted from the table in the input file is displayed on the right. Click the "Next >" button.
  4. The next page displays the variables that will be loaded into the MATLAB workspace. Right-click on the "data" variable under the "Name" column and select "Rename Variable". Then rename the variable to an appropriate variable name, such as "predictorsData".
  5. At this point you can also deselect the "colheaders" and "textdata" variables from being loaded into the MATLAB workspace, if they are unnecessary. Then click "Finish".
  6. Repeat steps 2 - 3 for the "Responses:" field with the Responses input file.
  7. Repeat step 4 but rename the "data" variable to "responsesData".
  8. Repeat step 5.
  9. Then when the "OK" button is pressed in the Import Data from Workspace window, the error will no longer occur.
I hope this helps.

1 件のコメント

I am facing the similar issue. I could not find the 'Next' button in the step 3 that you have mentioned. Please find attached the screenshot. Your help will be highly appreciated.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange で Get Started with Statistics and Machine Learning Toolbox についてさらに検索

製品

質問済み:

2023 年 5 月 26 日

コメント済み:

2026 年 1 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by