clop-console output?

Discussion of chess software programming and technical issues.

Moderator: Ras

jdart
Posts: 4420
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

clop-console output?

Post by jdart »

clop-console outputs some numbers but I don't know what they mean. It looks like the last 4 are the 4 parameter values? And what does the data file output mean? Again, this is just a line of numbers - no doc on that.

--Jon
lucasart
Posts: 3243
Joined: Mon May 31, 2010 1:29 pm
Full name: lucasart

Re: clop-console output?

Post by lucasart »

jdart wrote:clop-console outputs some numbers but I don't know what they mean. It looks like the last 4 are the 4 parameter values? And what does the data file output mean? Again, this is just a line of numbers - no doc on that.

--Jon
Personally, I used the CLOP GUI, it's easier.
Theory and practice sometimes clash. And when that happens, theory loses. Every single time.
Rémi Coulom
Posts: 438
Joined: Mon Apr 24, 2006 8:06 pm

Re: clop-console output?

Post by Rémi Coulom »

jdart wrote:clop-console outputs some numbers but I don't know what they mean. It looks like the last 4 are the 4 parameter values? And what does the data file output mean? Again, this is just a line of numbers - no doc on that.

--Jon
I'm lazy, so I just paste the code:

Code: Select all

void CRealObserver::OnOutput(int i)
{
 //results.Refresh();

 const int Wins = results.CountOutputs(COutput(COutput::WinV()));
 const int Draws = results.CountOutputs(COutput(COutput::DrawV()));
 const int Losses = results.CountOutputs(COutput(COutput::LossV()));

 std::cout << std::setw(8) << results.GetSamples();
 std::cout << std::setw(8) << Wins;
 std::cout << std::setw(8) << Draws;
 std::cout << std::setw(8) << Losses;
 std::cout << std::setw(13) << (Wins + 0.5 * Draws) / (Wins + Draws + Losses);

 std::vector<double> v(paramcol.GetSize());
 bool fMax = me.MaxParameter(&v[0]);
 if (fMax)
 {
  for (int j = 0; j < paramcol.GetSize(); j++)
  {
   const CParameter &param = paramcol.GetParam(j);
   std::cout << std::setw(13) << param.TransformFromQLR(v[j]);
  }
 }

 std::cout << '\n';
 std::cout.flush();
}
jdart
Posts: 4420
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

Re: clop-console output?

Post by jdart »

So it looks like these are the current params, transformed back to their original scale?

How do I see the converged or converging values- does this require the GUI? (I'm not running that because commonly I do everything remotely from another machine, and run batch processes detached).

--Jon
Rémi Coulom
Posts: 438
Joined: Mon Apr 24, 2006 8:06 pm

Re: clop-console output?

Post by Rémi Coulom »

jdart wrote:So it looks like these are the current params, transformed back to their original scale?

How do I see the converged or converging values- does this require the GUI? (I'm not running that because commonly I do everything remotely from another machine, and run batch processes detached).

--Jon
These are the estimated location of the maximum.

If you wish to visualize data with the GUI, you can just copy the .clop and data files to your local machine, and open them with the GUI.

Rémi
jdart
Posts: 4420
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

Re: clop-console output?

Post by jdart »

Got it, thanks for the info.

--Jon