In Classification Learner App I get an error about No public poperty 'Position' for class 'GridLayout'

2 次查看(过去 30 天)
Hi - I'm trying to use the Classification Learner app. I loaded the Fisher Iris data, and open the App, hit the Start Session button, and I get the below error. I updated my Matlab to R2022a to see if that might fix it, but it didn't. Any help would be appreciated. Thanks, Bill
load('fisheriris.mat')
classificationLearner(meas, species)
Error output:
Warning: Error occurred while executing the listener callback for event DisplayedModelChanged defined for class mlearnapp.internal.model.Session:
Error using matlab.ui.container.GridLayout/get
No public property 'Position' for class 'GridLayout'.
Error in getpixelposition
Error in mlearnapp.internal.ui.modellist.EntryView/scrollToThisInParentGrid (line 287)
gridPos = getpixelposition(parentGrid);
Error in mlearnapp.internal.ui.modellist.ModelListView/scrollToEntryView (line 103)
entryView.scrollToThisInParentGrid();
Error in mlearnapp.internal.ui.modellist.ModelListPresenter/scrollToHighlightedEntry (line 181)
this.ModelListView.scrollToEntryView(this.HighlightedEntryPresenter.EntryView);
Error in mlearnapp.internal.ui.modellist.ModelListPresenter/displayedModelChangedCallback (line 442)
this.scrollToHighlightedEntry();
Error in mlearnapp.internal.ui.modellist.ModelListPresenter>@(varargin)this.displayedModelChangedCallback(varargin{:}) (line 136)
this.addListener(this.Session, 'DisplayedModelChanged', @this.displayedModelChangedCallback);
Error in mlearnapp.internal.model.Session/set.DisplayedModel (line 255)
this.notify('DisplayedModelChanged');
Error in mlearnapp.internal.model.DraftEditableModel/createNewModelWithDefaultSpec (line 124)
this.Session.DisplayedModel = newModel;
Error in mlearnapp.internal.ui.toolstrip.GalleryPresenter/setSpecFromID (line 89)
this.Session.EditableModel.createNewModelWithDefaultSpec(spec);
Error in mlearnapp.internal.ui.toolstrip.GalleryPresenter/newSessionStartedCallback (line 113)
this.setSpecFromID(this.GalleryConfig.DefaultItemID);
Error in mlearnapp.internal.ui.toolstrip.GalleryPresenter>@(varargin)this.newSessionStartedCallback(varargin{:}) (line 65)
this.addListener(this.Session, 'NewSessionStarted', @this.newSessionStartedCallback);
Error in mlearnapp.internal.model.Session/initializeSessionWithProblem (line 194)
this.notify('NewSessionStarted');
Error in mlearnapp.internal.ui.manager.NewSessionWorkflowManager/sessionSetupDialogClosedWithStartCallback (line 194)
this.SessionManager.initializeSessionWithProblem(supervisedProblem);
Error in mlearnapp.internal.ui.manager.NewSessionWorkflowManager>@(varargin)this.sessionSetupDialogClosedWithStartCallback(varargin{:}) (line 149)
this.DialogClosedWithStartListener = event.listener(this.SessionSetupDialogPresenter, 'DialogClosedWithStart', @this.sessionSetupDialogClosedWithStartCallback);
Error in mlearnapp.internal.ui.setupdialog.SessionSetupDialogPresenter/startButtonClickedCallback (line 315)
this.notify('DialogClosedWithStart');
Error in mlearnapp.internal.ui.setupdialog.SessionSetupDialogPresenter>@(varargin)this.startButtonClickedCallback(varargin{:}) (line 87)
this.addListener(this.SessionSetupDialogView, 'StartButtonClicked', @this.startButtonClickedCallback);
Error in mlearnapp.internal.ui.setupdialog.SessionSetupDialogView/startButtonClickedCallback (line 1429)
this.notify('StartButtonClicked');
Error in mlearnapp.internal.ui.setupdialog.SessionSetupDialogView>@(varargin)this.startButtonClickedCallback(varargin{:}) (line 1264)
'ButtonPushedFcn', @this.startButtonClickedCallback);

采纳的回答

Image Analyst
Image Analyst 2022-6-21
This mostly works
s = load('fisheriris.mat')
tPredictors = table(s.meas(:, 1), s.meas(:, 2), s.meas(:, 3), s.meas(:, 4))
response = s.species;
classificationLearner(tPredictors, response)
I get some warnings but in the end it comes up and I can train some trees and it gives good predictions.
  3 个评论
Image Analyst
Image Analyst 2022-6-22
@Bill I just tried it in the R2022b pre-release and the warnings do not appear.
So it appears that it was some kind of bug that they've fixed and the fix will be out in the official release in mid-September 2022.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Gaussian Process Regression 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by