Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
P pyOPALTools
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1
    • Merge requests 1
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Code Review
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • OPAL
  • pyOPALTools
  • Issues
  • #80

Closed
Open
Created Apr 09, 2020 by snuverink_j@snuverink_jDeveloper

module uq : chaospy (3.2.9) chaospy.dot does not exist

When I run the confidence_interval notebook I get the following error:

AttributeError                            Traceback (most recent call last)
<ipython-input-2-637cb2ef6afe> in <module>
     16 
     17 y_train, y_pred, y_lo, y_up = uq.confidence_interval(x_train, y_train, alpha=alpha,
---> 18                                                      n_boot=n_boot, sample=sample)
     19 
     20 plt.figure(figsize=(16, 9))

~/Documents/OPAL/pyOPALTools/surrogate/uq.py in confidence_interval(self, x, y, alpha, **kwargs)
    129 
    130         lo, up = bs.confidence_interval(alpha=alpha)
--> 131         lo_pce = cp.dot(poly, np.asarray(lo))
    132         up_pce = cp.dot(poly, np.asarray(up))
    133 

AttributeError: module 'chaospy' has no attribute 'dot'

For this I had to add the following fix to bootstrap.py:

-        return 2.0 * fitted - qlo, 2.0 * fitted - qhi
+        return 2.0 * np.asarray(fitted) - qlo, 2.0 * np.asarray(fitted) - qhi
Edited Apr 09, 2020 by snuverink_j
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking