MCPcopy Create free account

hub / github.com/ValentinVignal/midiGenerator / functions

Functions815 in github.com/ValentinVignal/midiGenerator

Methodnb_channels
(self)
src/MidiGenerator/MGInit.py:183
Methodnb_default
:return: Number of non changeable parameters
src/BayesianOpt/Dimensions.py:34
Methodnb_dims
:return: number of changeable parameters
src/BayesianOpt/Dimensions.py:18
Methodnb_elements_available
(self)
src/NN/Sequences/KerasSequence.py:92
Methodnb_elements_available_per_file
(self)
src/NN/Sequences/KerasSequence.py:102
Methodnb_elements_available_per_song
(self)
src/NN/Sequences/KerasSequence.py:112
Methodnb_instruments
(self)
src/MidiGenerator/MGInit.py:131
Functionnb_measures
:param matrix: (nb_instruments, input_size, max_lenght, 2) :return:
src/Midi/common.py:23
Methodnb_steps
:return:
src/MidiGenerator/MGInit.py:115
Methodnew_nn_model
:param loss_options: :param model_id: modelName;modelParam;nbSteps :param work_on: :param opt_param: :param
src/MidiGenerator/MGModel.py:14
Functionnew_shapes_conv
Use to find the output shapes of several convolutional layers :param input_shape: Tuple[int]: ⚠ batch dim is NOT in shape ⚠ :par
src/NN/layers/conv.py:304
Functionnon_inf
(with_nan, var_to_change)
src/NN/Loss/utils.py:20
Functionnon_nan
(with_nan, var_to_change)
src/NN/Loss/utils.py:16
Methodon_epoch_begin
:param ags: :param kwags: :return:
src/NN/layers/KerasLayer.py:77
Methodon_epoch_begin
:param epoch: :param logs: :return:
src/NN/Callbacks/Annealing.py:43
Methodon_epoch_begin
:param epoch: :param logs: :return:
src/NN/Callbacks/UpdateLayers.py:15
Methodon_epoch_end
:param epoch: :param logs: :return:
src/NN/Callbacks/BestAccuracy.py:22
Methodon_epoch_end
:param epoch: :param logs: :return:
src/NN/Callbacks/CheckPoint.py:24
Methodon_epoch_end
(self, epoch, logs={})
src/NN/Callbacks/LossHistory.py:31
Methodon_new_step
:return:
src/Midi/Player/Controller.py:96
Methodon_new_time_step
:return:
src/Midi/Player/Controller.py:105
Methodon_press
:param key: :return:
src/Midi/Player/Controller.py:34
Methodon_release
:param key: :return:
src/Midi/Player/Controller.py:53
Methodon_train_begin
(self, logs)
src/NN/Callbacks/UpdateLayers.py:30
Functionpackage_management
()
simpleWorkingScripts/diagnose_tensorboard.py:172
Methodplay
:return:
src/Midi/Player/Controller.py:70
Methodplay
:return:
src/Midi/Player/Metronome.py:89
Methodplay_current_model_part
Plays the models notes generated by the model :param time_step: :return:
src/Midi/Player/BandPlayer.py:264
Functionplot_from_names
:param label: :param names: list of strings :return:
src/res/tb.py:82
Functionplot_res
:param filename: :param res: :return:
src/res/eval/plots.py:5
Methodpredict
:param input: :return: All the input of the neural network
src/NN/KerasNeuralNetwork.py:458
Methodpredict
(cls, *args, **kwargs)
src/NN/Sequences/MissingInstSequence.py:99
Methodpredict_on_batch
(self, *args, **kwargs)
src/MidiGenerator/MGInit.py:345
Functionprint_informations
:param nb_steps: :param matrix: :param notes_list: :param verbose: :return:
src/Midi/create.py:252
Methodprint_model
(self, *args, **kwargs)
src/MidiGenerator/MGInit.py:314
Methodprint_summary
Print a "working" summary :return: nothing
src/NN/Models/KerasModel.py:91
Methodprint_weights
Print the weights :return:
src/MidiGenerator/MGModel.py:160
Methodprint_weights
(self, *args, **kwargs)
src/MidiGenerator/MGInit.py:320
Functionrange_notes_in_matrix
:param mono: :param matrix: (nb_instruments, input_size, max_length, 2) :return: max and min note
src/Midi/common.py:7
Functionreadable_fqdn
()
simpleWorkingScripts/diagnose_tensorboard.py:285
Methodrecreate_model
create a new model witht the same options as the saved model and then load the weights (if with_weights==True) :param id: :pa
src/MidiGenerator/MGModel.py:58
Methodredo_song_generate
:param instrument_order: The order of the instruments to remplace :param song_number: The number of the song in the dataset
src/MidiGenerator/MGGenerate.py:474
Methodredo_song_replicate
:param instrument_order: The order of the instruments to remplace :param song_number: The number of the song in the dataset
src/MidiGenerator/MGReplicate.py:256
Functionreplace_value
(tensor, old_value, new_value)
src/NN/Loss/utils.py:24
Methodreplicate
(cls, *args, **kwargs)
src/NN/Sequences/MissingInstSequence.py:103
Methodreplicate_fill
:param max_length: :param no_duration: :param verbose: :param save_images: :param noise: :return:
src/MidiGenerator/MGReplicate.py:115
Methodreplicate_from_data
Generate Midi file from the seed and the trained model :param length: Length of th generation :param save_images: To save the
src/MidiGenerator/MGReplicate.py:17
Methodreset_weights_variables
Used to reset the weights of a sublayers in a model Since Tensorflow 2.0 it works without this function :return:
src/NN/Models/KerasModel.py:17
Methodreshape_generated_array
:param array: (nb_instruments, batch=1, nb_steps, step_length, size, channels) :return: array: (nb_instruments, size, length, channe
src/MidiGenerator/MGComputeGeneration.py:17
Functionreturn_similar_instruments
:param name: The name of the instrument :return: All the possible instruments to train on which are similar
src/Midi/instruments.py:40
Functionreverse_conv_param
---------- (nb_instrument * 2 ->) [[a, b], [c, d, e]] has to become (e ->) [[d, c, b], [a, nb_instruments]] And the UpSampling is done o
src/NN/layers/conv.py:322
Functionrhythm
:param take_all_steps_rhythm: :param max_reward: :param cost_value: :param y_true_a: activation, no loss (batch, nb_instruments, nb_
src/NN/Loss/cost.py:62
Functionsave_array
:param save_pil: :param save_plt: :param array: (a, b, 3) # RGB :param folder_path: :param name: :return:
src/Images/save.py:7
Functionsave_array_as_pianoroll
:param notes_range: To add the piano on the left of the image :param array: (nb_instruments, size, length, channels) :param folder_path:
src/Images/pianoroll.py:58
Functionsave_arrays
:param arrays: List[(a, b, 3)] :param file_name: :param titles: :param subtitles: :return:
src/Images/save.py:48
Functionsave_arrays_as_pianoroll_subplot
:param notes_range: To add the image of the piano on the left :param subtitles: :param titles: :param arrays: List[(nb_instruments,
src/Images/pianoroll.py:91
Functionsave_best_result
Save the best results and the parameters in a folder path :param best_accuracy: :param param_dict: :param folder_path: :return:
src/BayesianOpt/save.py:94
Functionsave_evaluations
:param search_result: :param folder_path: :return:
src/BayesianOpt/save.py:26
Methodsave_generated_arrays_cross_images
All the generated arrays in one subplot to give an easier way to compare them :param subtitles: :param titles: :para
src/MidiGenerator/MGComputeGeneration.py:132
Functionsave_img
:param array: shape (nb_instruments, 128, nb_steps, 2) :return:
src/Images/debug/debug.py:17
Functionsave_midi
:param output_notes_list: the notes :param instruments : le list of the name of the instruments used :param path: The .mid file path
src/Midi/create.py:230
Methodsave_midis_path
(self)
src/MidiGenerator/MGInit.py:175
Methodsave_midis_path_i
(self)
src/MidiGenerator/MGInit.py:158
Methodsave_model
:param path: path were to save the model, if None it will be at self.saved_model_path :return:
src/MidiGenerator/MGModel.py:112
Functionsave_objective
:param search_result: :param folder_path: :return:
src/BayesianOpt/save.py:40
Functionsave_search_result
:param folder_path: :param search_result: :param dimensions: :return:
src/BayesianOpt/save.py:125
Functionsave_sorted_results
Save the list of the sorted scores and the correspondings parameters :param default_params_dict: :param folder_path: :param sorted_sc
src/BayesianOpt/save.py:54
Functionsave_tensorboard_plots
:param mono: :param data: :param path: :return:
src/tb.py:45
Methodsaved_model_path
(self)
src/MidiGenerator/MGInit.py:107
Functionscale
:param y_true_a: activation, no loss (batch, nb_instruments, nb_steps, step_size, input_size) :param y_pred_a: activation, no loss (batch, n
src/NN/Loss/cost.py:18
Functionscale
Add the scale and rhythm reward/cost :param mono: :param take_all_steps_rhythm: :param l_scale: :param l_rhythm: :param args:
src/NN/Loss/losses.py:126
Functionsee_MySequence
To see the output of MySequence class can use : see_MySequence(*mySequence[i]) :param x: :param y: :return:
src/Images/debug/debug.py:43
Functionsee_compare_generation_step
:param inputs: (nb_instruments, batch=2, nb_steps, step_size, input_size, 2) :param outputs: (nb_instruments, batch=2, step_size, input_size
src/Images/debug/debug.py:60
Functionsee_compare_on_batch
:param x: (nb_instruments, batch, nb_steps, step_size, inputs_size, 2) :param yt: (nb_instruments, batch, step_size, input_size, 2) :par
src/Images/debug/debug.py:141
Methodsequence_test
(self)
src/MidiGenerator/MGInit.py:193
Functionsequence_to_numpy
:param sequence: :return:
src/NN/Sequences/to_numpy.py:5
Functionset_default
set the default parameters of default_dict in d :param d: :param default_dict: :return:
src/dictionaries.py:1
Functionset_default_rec
set the default parameters of default_dict in d Work recursively if a key of default dict is a dictionary too :param d: :param defau
src/dictionaries.py:14
Methodset_noise
(self, noise)
src/NN/Sequences/AllInstSequence.py:46
Methodset_weights_variables
Used to set the weights of a sublayers in a model Since Tensorflow 2.0 it works without this function :param args:
src/NN/Models/KerasModel.py:47
Functionshow_image
(array)
src/Images/debug/debug.py:9
Methodshow_pianoroll_time_step
:param args: :param kwargs: :return:
src/Midi/Player/BandPlayer.py:187
Functionsource_trees_without_genfiles
()
simpleWorkingScripts/diagnose_tensorboard.py:363
Functionstat_tensorboardinfo
()
simpleWorkingScripts/diagnose_tensorboard.py:329
Functionstep_decay
(epoch)
simpleWorkingScripts/working_rnn.py:52
Functionstep_decay
(epoch)
simpleWorkingScripts/stack_no_eager.py:26
Methodstep_decay
(epoch)
src/NN/KerasNeuralNetwork.py:187
Methodstep_length
(self)
src/MidiGenerator/MGInit.py:123
Functionstring2instrument
:param name: Name of the instrument :return: The music21 corresponding instrument class to instenciate
src/Midi/instruments.py:31
Functionstring_to_list
Create a list from the tupple '0:10:2' -> [0, 2, 4, 6, 8] :param string: :return:
src/BayesianOpt/process_args.py:4
Functionsummarize
:param path: The folder where to save :param title: Title of the summary :param file_name: Name of the file (without .txt) :param d:
src/text/summary.py:4
Methodsummary_dict
:return: A dict with all the interesting attribut of the instance
src/MidiGenerator/MGInit.py:135
Functionten_power
:param x: :return: 10 ** (-x)
src/BayesianOpt/process_args.py:40
Functiontensorboard_binary_path
()
simpleWorkingScripts/diagnose_tensorboard.py:260
Methodtensorboard_log_dir
(self)
src/NN/KerasNeuralNetwork.py:362
Functiontensorboard_python_version
()
simpleWorkingScripts/diagnose_tensorboard.py:245
Functiontensorflow_python_version
()
simpleWorkingScripts/diagnose_tensorboard.py:252
Functiontime_step_to_x
transform a list of shapes by replacing the value of nb_steps to x :param l: list of the shapes :param axis: axis of the time steps
src/NN/shapes/time.py:29
Functiontime_stride
:param step_length: :return:
src/NN/shapes/time.py:6
Functionto_mono_matrix
:param matrix: (nb_instruments, 88, nb_steps, 2) :return:
src/Midi/open.py:414
← previousnext →701–800 of 815, ranked by callers