Page 1 of 1

clop-console output?

Posted: Sun Dec 16, 2012 3:53 am
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

Re: clop-console output?

Posted: Sun Dec 16, 2012 6:52 am
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.

Re: clop-console output?

Posted: Sun Dec 16, 2012 10:19 am
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();
}

Re: clop-console output?

Posted: Sun Dec 16, 2012 3:25 pm
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

Re: clop-console output?

Posted: Sun Dec 16, 2012 3:43 pm
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

Re: clop-console output?

Posted: Sun Dec 16, 2012 3:58 pm
by jdart
Got it, thanks for the info.

--Jon