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);
댓글 수: 0
채택된 답변
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
2022년 6월 22일
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 Center 및 File Exchange에서 Gaussian Process Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!