-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathNGBDistReg.Rd
344 lines (323 loc) · 9.85 KB
/
NGBDistReg.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ngb_dist_reg.R
\name{NGBDistReg}
\alias{NGBDistReg}
\title{NGBoost regression distribution object}
\value{
A NGBDist Class
}
\description{
NGBoost regression distribution object
NGBoost regression distribution object
}
\author{
Resul Akay
}
\section{Methods}{
\subsection{Public methods}{
\itemize{
\item \href{#method-NGBDistReg-new}{\code{NGBDistReg$new()}}
\item \href{#method-NGBDistReg-rvs}{\code{NGBDistReg$rvs()}}
\item \href{#method-NGBDistReg-pdf}{\code{NGBDistReg$pdf()}}
\item \href{#method-NGBDistReg-logpdf}{\code{NGBDistReg$logpdf()}}
\item \href{#method-NGBDistReg-cdf}{\code{NGBDistReg$cdf()}}
\item \href{#method-NGBDistReg-logcdf}{\code{NGBDistReg$logcdf()}}
\item \href{#method-NGBDistReg-sf}{\code{NGBDistReg$sf()}}
\item \href{#method-NGBDistReg-logsf}{\code{NGBDistReg$logsf()}}
\item \href{#method-NGBDistReg-ppf}{\code{NGBDistReg$ppf()}}
\item \href{#method-NGBDistReg-isf}{\code{NGBDistReg$isf()}}
\item \href{#method-NGBDistReg-entropy}{\code{NGBDistReg$entropy()}}
\item \href{#method-NGBDistReg-interval}{\code{NGBDistReg$interval()}}
\item \href{#method-NGBDistReg-mean}{\code{NGBDistReg$mean()}}
\item \href{#method-NGBDistReg-median}{\code{NGBDistReg$median()}}
\item \href{#method-NGBDistReg-std}{\code{NGBDistReg$std()}}
\item \href{#method-NGBDistReg-var}{\code{NGBDistReg$var()}}
\item \href{#method-NGBDistReg-clone}{\code{NGBDistReg$clone()}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-NGBDistReg-new"></a>}}
\if{latex}{\out{\hypertarget{method-NGBDistReg-new}{}}}
\subsection{Method \code{new()}}{
Initialize the NGBoost distribution object.
It is initialize internally.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{NGBDistReg$new(x)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{x}}{A python ngboost.distns.distn.Distn.uncensor object}
}
\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-NGBDistReg-rvs"></a>}}
\if{latex}{\out{\hypertarget{method-NGBDistReg-rvs}{}}}
\subsection{Method \code{rvs()}}{
Random variates of given type.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{NGBDistReg$rvs()}\if{html}{\out{</div>}}
}
\subsection{Returns}{
Random variates
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-NGBDistReg-pdf"></a>}}
\if{latex}{\out{\hypertarget{method-NGBDistReg-pdf}{}}}
\subsection{Method \code{pdf()}}{
Probability density function at x of the given RV.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{NGBDistReg$pdf(quantiles, ...)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{quantiles}}{The quantiles}
\item{\code{...}}{Ignored}
}
\if{html}{\out{</div>}}
}
\subsection{Returns}{
Probability density function evaluated at quantiles
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-NGBDistReg-logpdf"></a>}}
\if{latex}{\out{\hypertarget{method-NGBDistReg-logpdf}{}}}
\subsection{Method \code{logpdf()}}{
Log of the probability density function at x of the given
RV.
This uses a more numerically accurate calculation if available.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{NGBDistReg$logpdf(quantiles)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{quantiles}}{The quantiles}
}
\if{html}{\out{</div>}}
}
\subsection{Returns}{
Log of the probability density function evaluated at quantiles
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-NGBDistReg-cdf"></a>}}
\if{latex}{\out{\hypertarget{method-NGBDistReg-cdf}{}}}
\subsection{Method \code{cdf()}}{
Cumulative distribution function of the given RV.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{NGBDistReg$cdf(quantiles)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{quantiles}}{The quantiles}
}
\if{html}{\out{</div>}}
}
\subsection{Returns}{
Cumulative distribution function evaluated at quantiles
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-NGBDistReg-logcdf"></a>}}
\if{latex}{\out{\hypertarget{method-NGBDistReg-logcdf}{}}}
\subsection{Method \code{logcdf()}}{
Log of the cumulative distribution function at x of the
given RV.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{NGBDistReg$logcdf(quantiles)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{quantiles}}{The quantiles}
}
\if{html}{\out{</div>}}
}
\subsection{Returns}{
Log of the cumulative distribution function evaluated at
quantiles.
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-NGBDistReg-sf"></a>}}
\if{latex}{\out{\hypertarget{method-NGBDistReg-sf}{}}}
\subsection{Method \code{sf()}}{
Survival function (1 - 'cdf') at x of the given RV.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{NGBDistReg$sf(quantiles)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{quantiles}}{The quantiles}
}
\if{html}{\out{</div>}}
}
\subsection{Returns}{
Survival function evaluated at quantiles
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-NGBDistReg-logsf"></a>}}
\if{latex}{\out{\hypertarget{method-NGBDistReg-logsf}{}}}
\subsection{Method \code{logsf()}}{
Log of the survival function of the given RV.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{NGBDistReg$logsf(quantiles)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{quantiles}}{The quantiles}
\item{\code{return}}{Log of the survival function evaluated at quantiles}
}
\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-NGBDistReg-ppf"></a>}}
\if{latex}{\out{\hypertarget{method-NGBDistReg-ppf}{}}}
\subsection{Method \code{ppf()}}{
Percent point function (inverse of 'cdf') at q of the
given RV.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{NGBDistReg$ppf(q, ...)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{q}}{array, Lower tail probability.}
\item{\code{...}}{Other arguments}
}
\if{html}{\out{</div>}}
}
\subsection{Returns}{
quantile corresponding to the lower tail probability q
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-NGBDistReg-isf"></a>}}
\if{latex}{\out{\hypertarget{method-NGBDistReg-isf}{}}}
\subsection{Method \code{isf()}}{
Inverse survival function (inverse of sf) at q of the
given RV.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{NGBDistReg$isf(q)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{q}}{array, Lower tail probability.}
}
\if{html}{\out{</div>}}
}
\subsection{Returns}{
Quantile corresponding to the upper tail probability, q.
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-NGBDistReg-entropy"></a>}}
\if{latex}{\out{\hypertarget{method-NGBDistReg-entropy}{}}}
\subsection{Method \code{entropy()}}{
Differential entropy.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{NGBDistReg$entropy()}\if{html}{\out{</div>}}
}
\subsection{Returns}{
Differential entropy
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-NGBDistReg-interval"></a>}}
\if{latex}{\out{\hypertarget{method-NGBDistReg-interval}{}}}
\subsection{Method \code{interval()}}{
Confidence interval with equal areas around the median.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{NGBDistReg$interval(confidence)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{confidence}}{Probability that an rv will be drawn from the returned
range.
Each value should be in the range \code{0>= confidence <=1}.}
}
\if{html}{\out{</div>}}
}
\subsection{Returns}{
nd-points of range that contain \code{100 * confidence} of
the rv's possible values.
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-NGBDistReg-mean"></a>}}
\if{latex}{\out{\hypertarget{method-NGBDistReg-mean}{}}}
\subsection{Method \code{mean()}}{
Mean of the distribution.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{NGBDistReg$mean()}\if{html}{\out{</div>}}
}
\subsection{Returns}{
The mean of the distribution
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-NGBDistReg-median"></a>}}
\if{latex}{\out{\hypertarget{method-NGBDistReg-median}{}}}
\subsection{Method \code{median()}}{
Median of the distribution.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{NGBDistReg$median()}\if{html}{\out{</div>}}
}
\subsection{Returns}{
The median of the distribution
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-NGBDistReg-std"></a>}}
\if{latex}{\out{\hypertarget{method-NGBDistReg-std}{}}}
\subsection{Method \code{std()}}{
Standard deviation of the distribution
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{NGBDistReg$std()}\if{html}{\out{</div>}}
}
\subsection{Returns}{
The standard deviation of the distribution
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-NGBDistReg-var"></a>}}
\if{latex}{\out{\hypertarget{method-NGBDistReg-var}{}}}
\subsection{Method \code{var()}}{
Variance of the distribution.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{NGBDistReg$var()}\if{html}{\out{</div>}}
}
\subsection{Returns}{
The variance of the distribution.
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-NGBDistReg-clone"></a>}}
\if{latex}{\out{\hypertarget{method-NGBDistReg-clone}{}}}
\subsection{Method \code{clone()}}{
The objects of this class are cloneable with this method.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{NGBDistReg$clone(deep = FALSE)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{deep}}{Whether to make a deep clone.}
}
\if{html}{\out{</div>}}
}
}
}