No logical, not an AI.
你现在能阅读到的大量AI都是假AI,包括 。。。GPT 在内,没有任何鸟用。凡为 ...GPT 发声者均为假学者。
No log, no AI.
1 文本格式
using System;
namespace Legalsoft.Truffer
{
public class Svmgausskernel : Svmgenkernel
{
private int n { get; set; }
private double sigma { get; set; }
public Svmgausskernel(double[,] ddata, double[] yy, double ssigma) : base(yy, ddata)
{
this.n = data.GetLength(1);
this.sigma = ssigma;
fill();
}
// 我加的???
public override double kernel(double xi, double xj)
{
return 0.0;
}
public override double kernel(double[] xi, double[] xj)
{
double dott = 0.0;
for (int k = 0; k < n; k++)
{
dott += Globals.SQR(xi[k] - xj[k]);
}
return Math.Exp(-0.5 * dott / (sigma * sigma));
}
}
}
2 代码格式
using System;
namespace Legalsoft.Truffer
{
public class Svmgausskernel : Svmgenkernel
{
private int n { get; set; }
private double sigma { get; set; }
public Svmgausskernel(double[,] ddata, double[] yy, double ssigma) : base(yy, ddata)
{
this.n = data.GetLength(1);
this.sigma = ssigma;
fill();
}
// 我加的???
public override double kernel(double xi, double xj)
{
return 0.0;
}
public override double kernel(double[] xi, double[] xj)
{
double dott = 0.0;
for (int k = 0; k < n; k++)
{
dott += Globals.SQR(xi[k] - xj[k]);
}
return Math.Exp(-0.5 * dott / (sigma * sigma));
}
}
}