function mdl = fitrsvm(X,Y,varargin)
%FITRSVM Fit a regression Support Vector Machine (SVM)
%   MDL = FITRSVM(TBL,RESPONSEVARNAME)
%   MDL = FITRSVM(TBL,FORMULA)
%   MDL = FITRSVM(TBL,Y)
%   MDL = FITRSVM(X,Y)
%   MDL = FITRSVM(___,'PARAM1',val1,'PARAM2',val2,...)
%
%   Limitations:
%   1) Predictor data must not contain infinite values.
%   2) The 'KernelFunction' name-value argument must not be a custom kernel
%      function.
%   3) You can specify the name-value argument 'Solver' only as 'SMO'.
%   4) You cannot specify the name-value argument 'OutlierFraction'.
%   5) You cannot specify the name-value argument 'ShrinkagePeriod'.
%
%   See also gpuArray, fitrsvm, RegressionSVM

%   Copyright 2022-2023 The MathWorks, Inc.

% Validate the inputs.
narginchk(2,inf);
argsToEnsureOnDeviceIfPossible = "alpha";
[X,Y,varargin{:}] = validateInputsForRegressionFitFunction(X,Y,varargin,argsToEnsureOnDeviceIfPossible);

mdl = parallel.internal.array.callToolboxFunction("stats/classreg/fitrsvm", X, Y, varargin{:});
end
