Giter VIP home page Giter VIP logo

keras-uncertainty's Introduction

I am a Assistant Professor for Machine Learning with Education Profile at the Department of Artificial Intelligence, University of Groningen. Previously I was researcher at the German Research Center for Artificial Intelligence, Robotics Innovation Center in Bremen, Germany. Before returning to Germany, I was a Marie Curie Fellow at the Ocean Systems Lab at Heriot-Watt University.

I am interested in making robots be able to “see” and perceive just as humans do. My research interests are in Deep Neural Networks, Reinforcement Learning, Uncertainty Quantification, Robot Vision, and Underwater Robotics.

I regularly teach courses at the University of Bremen and teach and supervise Master Students at the Hochschule Bonn-Rhein-Sieg’s Master of Autonomous Systems Program.

I received my PhD in Electrical Engineering from Heriot-Watt University in 2019, a Master of Science Degree in Autonomous Systems from Hochschule Bonn-Rhein-Sieg in 2014, and an Engineering Degree from Universidad Tecnologica Metropolitana in 2009. I have 4 years of professional experience before starting my Masters in Europe.

My PhD Thesis deals with the problem of detecting submerged marine debris in sonar images using neural networks. I have the strong belief that we should not be polluting our oceans and bodies of water, as it is a vital element for our survival. My PhD research was developed in the context of the Marie Skłodowska-Curie Initial Training Network Robocademy which was funded by the European Commission (FP7-PEOPLE-2013-ITN, Ref 608096).

keras-uncertainty's People

Contributors

gatufella avatar mvaldenegro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

keras-uncertainty's Issues

about Deep semble

Hi Matitas,

How are you ?

I have a few codes as follows:

def build_model():
model = merge_audio_video()

model.compile(optimizer="adam",
              loss='categorical_crossentropy',
              #loss=triplet_loss_adapted_from_tf,
              metrics=['accuracy', precision, recall, f1]
              )
from keras_uncertainty.models import DeepEnsembleClassifier
num_ensembles = 5
model = DeepEnsembleClassifier(model, num_ensembles)
return model

When using your code, there is one TypeError: call() missing 1 required positional argument: 'inputs'.
Can you help me? Thank you so much.

Cannot convert a symbolic Keras input/output to a numpy array.

Dear Matitas,

I am trying to use the keras-uncertainty library but I am getting the following error.

"Exception has occurred: TypeError (note: full exception trace is shown but execution is paused at: tf__train_function)

Cannot convert a symbolic Keras input/output to a numpy array. This error may indicate that you're trying to pass a symbolic value to a NumPy call, which is not supported. Or, you may be trying to pass Keras symbolic inputs/outputs to a TF API that does not register dispatching, preventing Keras from automatically converting the API call to a lambda layer in the Functional Model."

I found this answer in stack overflow which solves the problem in the model structure you have in the regression_deep_ensemble example:
(https://stackoverflow.com/questions/65366442/cannot-convert-a-symbolic-keras-input-output-to-a-numpy-array-typeerror-when-usi)

In the first comment of the solution though it is mentioned that:
"That's not a solution, in my case I'm running on GPU a model with LSTM layer, once I disable the eager execution, another error come's to be LSTM cannot use GPU it's not respecting the criteria"

In my case I also use a structure with LSTM layers, and when I call the DeepEnsembleRegressor constructor, like DeepEnsembleRegressor(lambda: define_stacked_model(members), 5) (since my define_stacked_model also needs an argument).
My define_stacked_model is constructing a model with concatenate and when I am trying to fit the DeepEnsembleRegressor I get the following error:
"Calling Model.fit in graph mode is not supported when the Model instance was constructed with eager mode enabled. Please construct your Model instance in graph mode or call Model.fit with eager mode enabled."

Since the eager execution cancelation is not an option, do you have any idea what could solve the first error?

Thanks in advance!

Inference for Deep Ensemble

Hi @mvaldenegro -
I returned to this repo to prepare some examples for a lecture series I am giving. When I went through your code, I stumbled to this line:
https://github.com/mvaldenegro/keras-uncertainty/blob/42f50a36c70003b16b7f343002766708ad2a289a/keras_uncertainty/models/DeepEnsembleClassifier.py#L219C1-L220C73

predictions = np.concatenate(predictions)
mean_pred = np.mean(predictions, axis=0)
mean_pred = mean_pred / np.sum(mean_pred, axis=1, keepdims=True)

according to the DeepEnsemble paper, one should average the predicted probabilities in the classification case. I guess, that is the line which instantiates the variable mean_pred. But I am a bit lost, why you "normalize" this again in the last line of the excerpt above. Can you comment please?

Help

Hi @mvaldenegro , I had already installed your great library keras-uncertainty.
just I need a documentation for this library, because I do not know how can I get more information about my model , I used DeepEnsembleClassifie() and I want to know each class probability and std() like this :
gitHub

Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.