Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pyGPs code problem
#6
(Oct-16-2020, 08:14 PM)bowlofred Wrote: I see some differences between the behavior of the package and the documentation. I wonder if the code has undergone some updates and the documentation hasn't kept up?

One of the examples suggests that this should work:

import pyGPs
import numpy as np
model = pyGPs.GPR()      # specify model (GP regression)
But it doesn't. I was able to get it to work (and the demo to draw data) by making the following modifications:

import pyGPs
import pyGPs.Core.gp
import numpy as np
model = pyGPs.Core.gp.GPR()      # specify model (GP regression)
I have the same thought, the documentation might not be updated for a long time so that some of the demo scripts can run, but some can't. They just have to be changed manually.
Reply


Messages In This Thread
pyGPs code problem - by pygauss10 - Oct-16-2020, 07:26 PM
RE: pyGPs code problem - by bowlofred - Oct-16-2020, 07:38 PM
RE: pyGPs code problem - by pygauss10 - Oct-17-2020, 01:56 PM
RE: pyGPs code problem - by pygauss10 - Oct-17-2020, 03:34 PM
RE: pyGPs code problem - by bowlofred - Oct-16-2020, 08:14 PM
RE: pyGPs code problem - by pygauss10 - Oct-17-2020, 03:40 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020