question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Docs] Implementing Custom mean function documentation

See original GitHub issue

Hello, all. While Gaussian Processes are often described as not needing a mean (or only a zero, or constant one), that is not true, and being able to implement custom means would be incredibly useful.

I see in the docs that gpytorch.means.Mean seems to be set aside for this specific purpose, but there exists no explanation (or examples) demonstrating how to use it.

Is there an obvious method of defining simple, custom means that I am not seeing? If not, I think a couple of basic examples would be helpful.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
jacobrgardnercommented, Jul 15, 2019

@dtort For that just use the constant mean, initialize the constant to 5 and then make the constant untrainable by setting requires_grad=False

self.mean_module = ConstantMean()
self.mean_module.initialize(constant=5.)
self.mean_module.constant.requires_grad = False
0reactions
Jahnvi99commented, Jun 23, 2021

Sure, as u suggested I opened a discussion topic with my question!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Functions in Google Sheets | Apps Script
Custom functions start out bound to the spreadsheet they were created in. This means that a custom function written in one spreadsheet can't...
Read more >
R Packages (2e) - 17 Function documentation
Rd files use a custom syntax, loosely based on LaTeX, and can be rendered to HTML, plain text, or pdf, as needed, for...
Read more >
How to Write Doc Comments for the Javadoc Tool - Oracle
This document describes the style guide, tag and image conventions we use in documentation comments for Java programs written at Java Software, ...
Read more >
Google Sheets function list - Google Docs Editors Help
Type Name Syntax Array ARRAY_CONSTRAIN ARRAY_CONSTRAIN(input_range, num_rows, num_cols) Array BYCOL BYCOL(array_or_range, LAMBDA) Array BYROW BYROW(array_or_range, LAMBDA)
Read more >
Built-in Functions — Python 3.11.1 documentation
This allows objects that implement a custom __getattr__() or ... a slash(/) appears in the parameter list of a function when invoking help()...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found