Skip to content

Commit

Permalink
change import name of the package to keras_mdn_layer
Browse files Browse the repository at this point in the history
  • Loading branch information
cpmpercussion committed May 7, 2024
1 parent 825f658 commit 56d1036
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 41 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This project requires Python 3.6+, TensorFlow and TensorFlow Probability. You ca

python3 -m pip install keras-mdn-layer

And finally, import the `mdn` module in Python: `import mdn`
And finally, import the module in Python: `import keras_mdn_layer as mdn`

Alternatively, you can clone or download this repository and then install via `python setup.py install`, or copy the `mdn` folder into your own project.

Expand All @@ -47,7 +47,7 @@ And finally, for learning how to generate musical touch-screen performances with
The MDN layer should be the last in your network and you should use `get_mixture_loss_func` to generate a loss function. Here's an example of a simple network with one Dense layer followed by the MDN.

from tensorflow import keras
import mdn
import keras_mdn_layer as mdn

N_HIDDEN = 15 # number of hidden units in the Dense layer
N_MIXES = 10 # number of mixture components
Expand Down
2 changes: 1 addition & 1 deletion examples/1-sineprediction.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Normal imports for everybody
from tensorflow import keras
import mdn
import keras_mdn_layer as mdn
import numpy as np


Expand Down
2 changes: 1 addition & 1 deletion examples/4-robojam-touch-generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import random
import time
import pandas as pd
import mdn
import keras_mdn_layer as mdn
import matplotlib.pyplot as plt


Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from tensorflow.compat.v1 import keras
import mdn
import keras_mdn_layer as mdn
import numpy as np


Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion notebooks/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import mdn
import keras_mdn_layer as mdn
from tensorflow import keras
35 changes: 0 additions & 35 deletions requirements.txt

This file was deleted.

0 comments on commit 56d1036

Please sign in to comment.