Ejemplo n.º 1
0
 public FfmParameter(global::Core.Ffm.FfmParameter _0)
 {
     __Instance                     = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Core.Ffm.FfmParameter.__Internal)));
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
     *((global::Core.Ffm.FfmParameter.__Internal *)__Instance) = *((global::Core.Ffm.FfmParameter.__Internal *)_0.__Instance);
 }
Ejemplo n.º 2
0
            public static global::Core.Ffm.FfmModel FfmTrainOnDisk(string path, global::Core.Ffm.FfmParameter param)
            {
                var __arg1 = ReferenceEquals(param, null) ? new global::Core.Ffm.FfmParameter.__Internal() : *(global::Core.Ffm.FfmParameter.__Internal *)param.__Instance;
                var __ret  = __Internal.FfmTrainOnDisk_0(path, __arg1);

                global::Core.Ffm.FfmModel __result0;
                if (__ret == IntPtr.Zero)
                {
                    __result0 = null;
                }
                else if (global::Core.Ffm.FfmModel.NativeToManagedMap.ContainsKey(__ret))
                {
                    __result0 = (global::Core.Ffm.FfmModel)global::Core.Ffm.FfmModel.NativeToManagedMap[__ret];
                }
                else
                {
                    __result0 = global::Core.Ffm.FfmModel.__CreateInstance(__ret);
                }
                return(__result0);
            }
Ejemplo n.º 3
0
            public static float FfmCrossValidation(global::Core.Ffm.FfmProblem prob, int nr_folds, global::Core.Ffm.FfmParameter param)
            {
                var __arg0 = ReferenceEquals(prob, null) ? global::System.IntPtr.Zero : prob.__Instance;
                var __arg2 = ReferenceEquals(param, null) ? new global::Core.Ffm.FfmParameter.__Internal() : *(global::Core.Ffm.FfmParameter.__Internal *)param.__Instance;
                var __ret  = __Internal.FfmCrossValidation_0(__arg0, nr_folds, __arg2);

                return(__ret);
            }
Ejemplo n.º 4
0
            public static global::Core.Ffm.FfmModel FfmTrainWithValidation(global::Core.Ffm.FfmProblem Tr, global::Core.Ffm.FfmProblem Va, global::Core.Ffm.FfmParameter param)
            {
                var __arg0 = ReferenceEquals(Tr, null) ? global::System.IntPtr.Zero : Tr.__Instance;
                var __arg1 = ReferenceEquals(Va, null) ? global::System.IntPtr.Zero : Va.__Instance;
                var __arg2 = ReferenceEquals(param, null) ? new global::Core.Ffm.FfmParameter.__Internal() : *(global::Core.Ffm.FfmParameter.__Internal *)param.__Instance;
                var __ret  = __Internal.FfmTrainWithValidation_0(__arg0, __arg1, __arg2);

                global::Core.Ffm.FfmModel __result0;
                if (__ret == IntPtr.Zero)
                {
                    __result0 = null;
                }
                else if (global::Core.Ffm.FfmModel.NativeToManagedMap.ContainsKey(__ret))
                {
                    __result0 = (global::Core.Ffm.FfmModel)global::Core.Ffm.FfmModel.NativeToManagedMap[__ret];
                }
                else
                {
                    __result0 = global::Core.Ffm.FfmModel.__CreateInstance(__ret);
                }
                return(__result0);
            }