Commit c312021 1 parent 9b05aa4 commit c312021 Copy full SHA for c312021
File tree 1 file changed +24
-3
lines changed
1 file changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -120,10 +120,31 @@ print.sampler <- function(x, ...) {
120
120
cat(msg )
121
121
}
122
122
123
+ tune_tf <- R6Class(
124
+ " tune_tf" ,
125
+ inherit = sampler ,
126
+ public = list (
127
+ parameters = list (),
128
+ accept_target = NULL ,
129
+ define_tf_kernel = NULL ,
130
+ sampler_parameter_values = NULL
131
+ )
132
+ )
133
+
134
+ tune_r <- R6Class(
135
+ " tune_r" ,
136
+ inherit = sampler ,
137
+ public = list (
138
+ parameters = list (),
139
+ accept_target = NULL ,
140
+ define_tf_kernel = NULL ,
141
+ sampler_parameter_values = NULL
142
+ )
143
+ )
123
144
124
145
hmc_sampler <- R6Class(
125
146
" hmc_sampler" ,
126
- inherit = sampler ,
147
+ inherit = tune_r ,
127
148
public = list (
128
149
parameters = list (
129
150
Lmin = 10 ,
@@ -191,7 +212,7 @@ hmc_sampler <- R6Class(
191
212
192
213
rwmh_sampler <- R6Class(
193
214
" rwmh_sampler" ,
194
- inherit = sampler ,
215
+ inherit = tune_r ,
195
216
public = list (
196
217
parameters = list (
197
218
proposal = " normal" ,
@@ -268,7 +289,7 @@ rwmh_sampler <- R6Class(
268
289
269
290
slice_sampler <- R6Class(
270
291
" slice_sampler" ,
271
- inherit = sampler ,
292
+ inherit = tune_r ,
272
293
public = list (
273
294
parameters = list (
274
295
max_doublings = NA
You can’t perform that action at this time.
0 commit comments