Skip to content

Commit c80fbfe

Browse files
author
Michael Walton
committed
mdn source
1 parent 243b6af commit c80fbfe

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.idea/
12
# Byte-compiled / optimized / DLL files
23
__pycache__/
34
*.py[cod]

example.ipynb

+1-10
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,11 @@
2424
"import matplotlib.pyplot as plt\n",
2525
"from mdn import MixtureDensityNetwork1D"
2626
]
27-
},
28-
{
29-
"cell_type": "code",
30-
"execution_count": null,
31-
"metadata": {
32-
"collapsed": true
33-
},
34-
"outputs": [],
35-
"source": []
3627
}
3728
],
3829
"metadata": {
3930
"kernelspec": {
40-
"display_name": "Python 2",
31+
"display_name": "Python [default]",
4132
"language": "python",
4233
"name": "python2"
4334
},

mdn.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def sample_from_seed(self, seed, output_len=1):
254254
return X_pred
255255

256256
def get_density(self, X, linspace, max_lookback=None):
257-
''' Compute the conditional density '''
257+
''' Compute the conditional density over a sequence '''
258258
if max_lookback is None:
259259
max_lookback = X.shape[1]
260260

@@ -271,7 +271,7 @@ def get_density(self, X, linspace, max_lookback=None):
271271
return density
272272

273273
def P(self, X, max_lookback=None):
274-
''' Compute the conditional density '''
274+
''' Compute the conditional likelihood over a sequence '''
275275
if max_lookback is None:
276276
max_lookback = X.shape[1]
277277

0 commit comments

Comments
 (0)