thekangchen / soundscape-emotion-recognition-models Goto Github PK
View Code? Open in Web Editor NEWModel training and validation for soundscape emotion recognition
Model training and validation for soundscape emotion recognition
I am interested in running the code you have provided, but I have encountered some errors while attempting to set up the necessary environment. I believe that having a complete environment setup file (e.g., a requirements.txt or environment.yml) would greatly assist me in resolving these issues.
Could you please provide me with such a file, if available? This would include all the dependencies and versions of the packages required to run your code smoothly.
Thank you very much !
AttributeError Traceback (most recent call last)
Input In [24], in <cell line: 19>()
42 #VALENCE
43 model_CNN_valence = KerasRegressor(build_fn = build_cnn, verbose=True, epochs=53, batch_size=32)
---> 45 history_valence = model_CNN_valence.fit(normalized_pathes_train_valence, y_patches_train_valence)
47 CNN_y_predicted_valence = model_CNN_valence.predict(normalized_pathes_test_valence)
49 CNN_y_predicted_valence = np.array(average_output_of_patches(CNN_y_predicted_valence))
File ~/miniconda3/lib/python3.8/site-packages/keras/wrappers/scikit_learn.py:167, in BaseWrapper.fit(self, x, y, **kwargs)
163 else:
164 self.model = self.build_fn(**self.filter_sk_params(self.build_fn))
166 if (
--> 167 losses.is_categorical_crossentropy(self.model.loss)
168 and len(y.shape) != 2
169 ):
170 y = to_categorical(y)
172 fit_args = copy.deepcopy(self.filter_sk_params(Sequential.fit))
AttributeError: module 'keras.losses' has no attribute 'is_categorical_crossentropy'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.