<commit_before>---
title: Difficulties with tgp; taking custom mcmc approach for GPs 
published: false
layout: post
category: ecology
tags:
- nonparametric-bayes

---


Running into some unpredictable and not consistently replicable memory errors in the tgp function calls. Also rather troublesome that return object provides only posterior means for the process mean and covariance matrix.  

## Generic GP methods

* Implemented MCMC sampler.  Excerpt below based on my [gaussian-process-basics.md](https://github.com/cboettig/nonparametric-bayes/blob/e6c9b3048fd0cc50d0ec7eb00ac7cb9b00591618/inst/examples/gaussian-process-basics.md) script, as updated to include this case.  <commit_msg>quote title<commit_after>---
title: "Difficulties with tgp; taking custom mcmc approach for GPs"
layout: post
category: ecology
tags:
- nonparametric-bayes

---


Running into some unpredictable and not consistently replicable memory errors in the tgp function calls. Also rather troublesome that return object provides only posterior means for the process mean and covariance matrix.  

## Generic GP methods

* Implemented MCMC sampler.  Excerpt below based on my [gaussian-process-basics.md](https://github.com/cboettig/nonparametric-bayes/blob/e6c9b3048fd0cc50d0ec7eb00ac7cb9b00591618/inst/examples/gaussian-process-basics.md) script, as updated to include this case.  
{'fraction_non_alphanumeric': 0.06964809384164222, 'fraction_numerical': 0.03372434017595308, 'mean_word_length': 5.066666666666666, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6887211', 'n_tokens_mistral': 437, 'n_tokens_neox': 388, 'n_words': 139}