New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

otkerneldesign

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

otkerneldesign

Design of experiments based on kernel methods

  • 0.1.4
  • PyPI
  • Socket score

Maintainers
1

otkerneldesign

This Python module generates designs of experiments based on kernel methods such as Kernel Herding and Support Points with the classes:

  • KernelHerding
  • KernelHerdingTensorized
  • GreedySupportPoints

Additionally, optimal weights for quadrature and validation designs are provided by the classes:

  • BayesianQuadratureWeighting
  • TestSetWeighting

Installation

~$ pip install otkerneldesign

Documentation & references

  • Package documentation
  • Usage in Machine Learning model validation
  • Support points
  • Kernel herding

Example

>>> import openturns as ot
>>> import otkerneldesign as otkd
>>> # Distribution definition
>>> distribution = ot.ComposedDistribution([ot.Normal(0.5, 0.1)] * 2)
>>> dimension = distribution.getDimension()
>>> # Kernel definition
>>> ker_list = [ot.MaternModel([0.1], [1.0], 2.5)] * dimension
>>> kernel = ot.ProductCovarianceModel(ker_list)
>>> # Kernel herding design
>>> kh = otkd.KernelHerding(kernel=kernel, distribution=distribution)
>>> kh_design, kh_indices = kh.select_design(size=20)

normal_kh

Authors

  • Elias Fekhari
  • Joseph Muré

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc