photo

Leon


Last seen: 2일 전 2024년부터 활동

Followers: 0   Following: 0

통계학

  • Thankful Level 3
  • First Answer

배지 보기

Feeds

보기 기준

답변 있음
How can I get script's location when running one section of a script?
I seem to have found a workaround by creating a function in a separate .m in the same folder that calls mfilename("fullpath"), a...

5개월 전 | 2

질문


How can I get script's location when running one section of a script?
I frequently run scripts one section at a time. I can be using different computers, remote desktops, etc., so the path changes. ...

5개월 전 | 답변 수: 2 | 0

2

답변

답변 있음
fitcdiscr bug: Why does "ClassNames" now have to be provided in alphanumerical order otherwise accuracy is terrible?
I received the following answer and workaround (using kfoldPredict) from Mathworks technical support: The bug here lies within ...

6개월 전 | 0

질문


fitPosterior warning: Why does fitPosterior output a warning when the transformation is a step function?
I'm training various SVM models and saving the output from MATLAB. The output has lots of these warning messages: Warning: Clas...

6개월 전 | 답변 수: 1 | 0

1

답변

질문


fitcdiscr bug: Why does "ClassNames" now have to be provided in alphanumerical order otherwise accuracy is terrible?
[Update: There is a known bug in kfoldLoss. See answer and workaround from Mathworks technical support in the answers section] ...

6개월 전 | 답변 수: 2 | 0

2

답변

답변 있음
How to stop further execution of M-script by using command?
This doesn't answer your question, but something I use to stop a program without using an error message like error("Don't panic,...

7개월 전 | 1

질문


kfoldLoss() values have inconsistent precision between different iterations of a loop
I am training an RBF SVM with leave-one-out cross-validation using 94 observations and I am surpised to find that the precision ...

7개월 전 | 답변 수: 1 | 0

1

답변

질문


Possible to iterate over table rows without a loop index variable?
To iterate over the variables (columns) of a table, you can do this: my_table = table([1; 2; 3], [4; 5; 6], ["Seven"; "Eight"; ...

7개월 전 | 답변 수: 1 | 0

1

답변

질문


How to output variables properly from a parfor loop
Having read over the documentation and Googled, I have an idea of what I'm not allowed to do in a parfor loop, but can't seem to...

7개월 전 | 답변 수: 1 | 0

1

답변

답변 있음
How can I check whether an argument is given or not (inputParser)?
Is there any reason not to use exist("arg_name", "var") ? It doesn't give a false positive for a global of the same name. Maybe...

9개월 전 | 0

질문


Create confusion matrix from LDA model
It is easy to train an LDA model and find its accuracy by cross-validation as below: Mdl = fitcdiscr(data, "Response_var_name",...

9개월 전 | 답변 수: 1 | 0

1

답변

질문


What is the best way to add empty rows to an existing table, to pre-allocate for more data?
Let's say I have a table that has 100 rows of ten variables and now I know I am going to need another 100 rows (or perhaps 100,0...

11개월 전 | 답변 수: 2 | 1

2

답변

답변 있음
How do I rename fields of a structure array?
Until Matlab (hopefully) introduces a rename field function, I would convert to a table then use renamevars() and then convert b...

11개월 전 | 0