답변 있음
Hyper-parameter Optimization
Actually, all of the variables are custom variables. They can be whatever you want. The objective function, which you write, get...

대략 8년 전 | 1

답변 있음
Code documentation neural networks
This might be more what you're looking for: <https://www.mathworks.com/help/nnet/deep-learning-training-from-scratch.html>

8년 초과 전 | 0

답변 있음
Baysian Optimisation. Any way of increasing the sample size of candidates solutions to satisfy XConstraintFunction in bayesopt()?
Unfortunately the API doesn't allow that, but you can assign into the Options object once you have one. The bayesopt function cr...

8년 초과 전 | 0

| 수락됨

답변 있음
Bug in bayesopt() function? Initial evaluation points table being incorrectly evaluated?
Hi Bob, You're running into a bug in bayesoptim.isInteger. You should be able to view that code by typing edit bayesoptim....

8년 초과 전 | 0

| 수락됨

답변 있음
What is the difference between k-fold optimization and k-fold cross-validation in fitcecoc? Isn't it redundant?
I think it's fair to say that the returned model has been cross-validated, in the sense that it was chosen based on its cross-va...

8년 초과 전 | 0

| 수락됨

답변 있음
Naive Bayes Posterior Probability
You can get the posterior probabilities from the second output of the predict method. See this page: http://www.mathworks.com/h...

8년 초과 전 | 1

| 수락됨

답변 있음
Simulated annealing on a 3D matrix data set instead of a mathematical function?
Here's an illustration of how to do it with bayesopt. You would have your objective function call your external function (someho...

8년 초과 전 | 0

답변 있음
bayesopt: change the default kernel / options
bayesopt doesn't have a way to do that from the command line, but you can do it by editing the code. The only place where fitrgp...

8년 초과 전 | 3

답변 있음
Using Bayesopt for TreeBagger Classification
Here's a variation that doesn't use a function-within-a-function. Maybe it's easier to understand: load fisheriris X = m...

8년 초과 전 | 0

답변 있음
Using Bayesopt for TreeBagger Classification
How about something like this? Instead of crossval, it uses TreeBagger's ability to use the "out of bag" observations as validat...

8년 초과 전 | 0

답변 있음
bayesopt options pair: 'InitialX', {1x6} results in first cell-array entry taken as initial for all variables
Thanks for pointing this out. That's a bug, because bayesopt should not accept a cell array as the value for 'InitialX'. It expe...

8년 초과 전 | 0

| 수락됨

답변 있음
Why it gives worse results when I use Genetic Algorithm for training NNs than when I use Back-propagation?
I think we should expect worse results with GA than with Backprop. Backpropagation training is a gradient-based minimization alg...

8년 초과 전 | 0

| 수락됨

답변 있음
WHY CANNOT MATLAB POST SATISFACTORY EXAMPLES OF NN DESIGN USING GA ???
Greg, I posted an answer with corrected code in http://www.mathworks.com/matlabcentral/answers/100323 This is not a formal Do...

8년 초과 전 | 0

답변 있음
How can I use the Genetic Algorithm (GA) to train a Neural Network in Neural Network Toolbox?
The code posted by MathWorks Support Team on 18 Oct 2013 throws an error if you put it in a file and run it as-is, because the f...

8년 초과 전 | 1

답변 있음
i want to optimize a neural network parameters by genetic algorithm and i get below code from matlab support, but the result is very poor even for a very simple function. how can i improve the result and is there any better code for my porpuse?
In the code you posted, mse_test is not calculating mean squared error. Here is a corrected version that seems to work fine. Pas...

8년 초과 전 | 0

답변 있음
How to send a big data (loaded into datastore object) to a classifier in Matlab?
I think you need to pass tall arrays or a tall table to fitcnb. See the documentation here: http://www.mathworks.com/help/stats/...

8년 초과 전 | 0

답변 있음
Finding optimal regression tree using hyperparameter optimization
My guess is that your first run was worse because it was not run for enough iterations. The default MaxObjectiveEvaluations is 3...

8년 초과 전 | 1

| 수락됨

답변 있음
prediction without prior fitting in GPR
Set the initial parameter values and also pass 'FitMethod','None' http://www.mathworks.com/help/stats/fitrgp.html?searchHighl...

8년 초과 전 | 0

| 수락됨

답변 있음
how to group data points in matrix
out = [A floor(A/5)]

거의 9년 전 | 0

답변 있음
How do I change the properties of a model object, when the object is generated by a toolbox?
I think the properties you want to set are 'protected' which means that only methods of the class or subclasses can set them. Th...

거의 9년 전 | 0

답변 있음
How to get optimal tree when using random forest method
You could also try to find the best ensemble like this: fitcensemble(meas,species,'OptimizeHyperparameters','all') This ...

거의 9년 전 | 0

답변 있음
How to use Bayesian Optimization?
You need to pass Y into oobErrRF. Change its first line to function oobErr = oobErrRF(params,X,Y) And change the call on...

거의 9년 전 | 0

답변 있음
How to train a Naive Bayes classifier?
How about this? % Make a synthetic dataset STE = rand(84,1)*20; ZCR = randi(900,84,1); Category = [repmat({'unvoic...

거의 9년 전 | 0

답변 있음
What do the Distribution Parameters of fitcnb mean?
Here is the doc page for them: <http://www.mathworks.com/help/stats/classificationnaivebayes-class.html#property_d0e141114>

거의 9년 전 | 0

| 수락됨

답변 있음
Classification problem parsed as regression problem when Split Criterion is supplied to fitcensemble
Thanks, I now see cases succeeding with 'GentleBoost' and 'gdi' together. This is a bug in the search space for hyperparamete...

거의 9년 전 | 2

| 수락됨

답변 있음
How to best do cross-validation using fitensemble?
It doesn't make any difference in the models. The only difference is that with the first method you also get a single model trai...

거의 9년 전 | 0

| 수락됨

답변 있음
Change objective function for hyperparameter optimization in regression ensembles
'fitrensemble' doesn't support MAE, but you can use 'TreeBagger' to do what you want. TreeBagger fits a random forest and suppor...

거의 9년 전 | 1

| 수락됨

답변 있음
how to use cross-validation in fitrgp
Briefly: The first command specifies a holdout proportion for fitting a single model. The second command specifies the holdout p...

거의 9년 전 | 3

답변 있음
How to set arguments of 'fitrgp' while using 'bayesopt'?
You're right that bayesopt doesn't provide an interface for that. If you're willing to modify a source code file it can be done ...

거의 9년 전 | 0

| 수락됨

답변 있음
Why does Support Vector Regression (fitrsvm) optimization result in poor performance ?
Maybe it's because the optimized SVR uses the default kernel function, which is 'linear'. If you include 'KernelFunction','gauss...

대략 9년 전 | 0

| 수락됨

더 보기