English 中文(简体)
如何计算LSA “LSA Intro AI Seminar”
原标题:How to calculate LSA Word score as seen in "LSA Intro AI Seminar"
  • 时间:2012-04-10 09:29:33
  •  标签:
  • lsa
最佳回答

Ok; I ve决定写上电点的作者(Dr. Melanie J Martin),她指出Deerseyer等人的论文第406页。

为了测试它,我举了一个例子,看看我是否能够获得同样的价值,我的工作是:

试验守则:

static void XHatTest()
{
    double[,] testT = new double[12, 2], testD = new double[2, 9], testS = new double[2, 2];
    testT[0, 0] = 0.22;
    testT[0, 1] = -0.11;
    testT[1, 0] = 0.20;
    testT[1, 1] = -0.07;
    testT[2, 0] = 0.24;
    testT[2, 1] = 0.04;
    testT[3, 0] = 0.40;
    testT[3, 1] = 0.06;
    testT[4, 0] = 0.64;
    testT[4, 1] = -0.17;
    testT[5, 0] = 0.27;
    testT[5, 1] = 0.11;
    testT[6, 0] = 0.27;
    testT[6, 1] = 0.11;
    testT[7, 0] = 0.30;
    testT[7, 1] = -0.14;
    testT[8, 0] = 0.21;
    testT[8, 1] = 0.27;
    testT[9, 0] = 0.01;
    testT[9, 1] = 0.49;
    testT[10, 0] = 0.04;
    testT[10, 1] = 0.62;
    testT[11, 0] = 0.03;
    testT[11, 1] = 0.45;

    testD[0, 0] = 0.20;
    testD[0, 1] = 0.61;
    testD[0, 2] = 0.46;
    testD[0, 3] = 0.54;
    testD[0, 4] = 0.28;
    testD[0, 5] = 0.00;
    testD[0, 6] = 0.02;
    testD[0, 7] = 0.02;
    testD[0, 8] = 0.08;
    testD[1, 0] = -0.06;
    testD[1, 1] = 0.17;
    testD[1, 2] = -0.13;
    testD[1, 3] = -0.23;
    testD[1, 4] = 0.11;
    testD[1, 5] = 0.19;
    testD[1, 6] = 0.44;
    testD[1, 7] = 0.62;
    testD[1, 8] = 0.53;

    testS[0, 0] = 3.34;
    testS[0, 1] = 0;
    testS[1, 0] = 0;
    testS[1, 1] = 2.54;

    Matrix A = new Matrix(testT), B = new Matrix(testD), C = new Matrix(testS);
    Matrix Result = A * C * B;
    for (int row = 0; row < Result.NoRows; row++)
    {
        for (int col = 0; col < Result.NoCols; col++)
        {
            Console.Write(Math.Round(Result[row, col], 2) + " ");
        }
        Console.WriteLine();
    }
}
问题回答

暂无回答




相关问题
execute program as lsa

I m developing a program in windows (something like client & server) and I want to run server as LSA(local system account).but I don t know how? Note: I m writing my program in VB6 but I m ...

Factors Analysis using MDP in Python

Excuse my ignorance, I m very new to Python. I m trying to perform factor analysis in Python using MDP (though I can use another library if there s a better solution). I have an m by n matrix (...

热门标签