Exemplo n.º 1
0
 public void obtain_from_dot(DotFeatures df) {
   modshogunPINVOKE.IntFeatures_obtain_from_dot(swigCPtr, DotFeatures.getCPtr(df));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 2
0
 public AveragedPerceptron(DotFeatures traindat, Labels trainlab) : this(modshogunPINVOKE.new_AveragedPerceptron__SWIG_1(DotFeatures.getCPtr(traindat), Labels.getCPtr(trainlab)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 3
0
 public LinearKernel(DotFeatures l, DotFeatures r) : this(modshogunPINVOKE.new_LinearKernel__SWIG_1(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 4
0
 public WaveletKernel(DotFeatures l, DotFeatures r, int size, double Wdilation, double Wtranslation) : this(modshogunPINVOKE.new_WaveletKernel__SWIG_2(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r), size, Wdilation, Wtranslation), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 5
0
 public PolyKernel(DotFeatures l, DotFeatures r, int d, bool inhom) : this(modshogunPINVOKE.new_PolyKernel__SWIG_2(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r), d, inhom), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 6
0
 public bool append_feature_obj(DotFeatures obj) {
   bool ret = modshogunPINVOKE.CombinedDotFeatures_append_feature_obj(swigCPtr, DotFeatures.getCPtr(obj));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Exemplo n.º 7
0
 public SVMOcas(double C, DotFeatures traindat, Labels trainlab) : this(modshogunPINVOKE.new_SVMOcas__SWIG_2(C, DotFeatures.getCPtr(traindat), Labels.getCPtr(trainlab)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 8
0
 internal static HandleRef getCPtr(DotFeatures obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Exemplo n.º 9
0
 public virtual double dot(int vec_idx1, DotFeatures df, int vec_idx2) {
   double ret = modshogunPINVOKE.DotFeatures_dot(swigCPtr, vec_idx1, DotFeatures.getCPtr(df), vec_idx2);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Exemplo n.º 10
0
 public ExponentialKernel(DotFeatures l, DotFeatures r, double width, Distance distance, int size) : this(modshogunPINVOKE.new_ExponentialKernel__SWIG_1(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r), width, Distance.getCPtr(distance), size), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 11
0
 public SigmoidKernel(DotFeatures l, DotFeatures r, int size, double gamma, double coef0) : this(modshogunPINVOKE.new_SigmoidKernel__SWIG_2(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r), size, gamma, coef0), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 12
0
 public virtual void set_features(DotFeatures features) {
   modshogunPINVOKE.GaussianNaiveBayes_set_features(swigCPtr, DotFeatures.getCPtr(features));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 13
0
 public virtual void set_features(DotFeatures feat) {
   modshogunPINVOKE.LinearMachine_set_features(swigCPtr, DotFeatures.getCPtr(feat));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 14
0
 public GaussianKernel(DotFeatures l, DotFeatures r, double width) : this(modshogunPINVOKE.new_GaussianKernel__SWIG_3(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r), width), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }