For questions about machine learning modelling, architectures and design choices, as well as traditional models (AlexNet, VGGNet, Inception, ResNet, etc).
Questions tagged [machine-learning-model]
131 questions
9
votes
1 answer
How to convert tensorflow model to keras model? .pb file to .hdf5?
I have searched for hours on google but have not seen any code/package to convert.
Any guidance on this would be highly appreciated.

Srivatsa Kulkarni
- 91
- 1
- 3
9
votes
1 answer
Why is naïve Bayes generative?
I am working on a document which should contain the key differences between using Naive Bayes (generative) and Logistic Regression (discriminative) models for text classification.
During my research, I ran into this definition for Naive Bayes model:…

GermanC
- 279
- 2
- 8
8
votes
1 answer
Linear Discriminant Analysis vs Naive Bayes
What are the advantages and disadvantages of LDA vs Naive Bayes in
terms of machine learning classification?
I know some of the differences like Naive Bayes assumes variables to be independent, while LDA assumes Gaussian class-conditional…

jon givony
- 197
- 2
- 3
- 9
6
votes
2 answers
Google Kubernetes Engine vs Vertex AI (AI Platform Unified) for Serving Model Prediction
With Google releasing Vertex AI lately that integrates all its MLOps platforms, I wonder what would be the difference in serving a custom trained PyTorch/Tensorflow model on GKE vs Vertex AI (or AI Platform Unified, since the rebranding just took…

Andrew
- 73
- 1
- 5
5
votes
3 answers
Saving a 'fine-tuned' bert model
I am trying to save a fine tuned bert model. I have ran the code correctly - it works fine, and in the ipython console I am able to call getPrediction and have it result the result.
I have my weight files saved (highest being…

user5067291
- 440
- 1
- 6
- 16
4
votes
1 answer
Learning Binary Decision Diagrams (BDDs) from data in Python
Is it possible to learn Binary Decision Diagrams (BDDs) from data (as in a machine learning fashion)? If so, how?
Background: I've seen some tools in Python to do this task in e.g., Decision Trees (DTs) with scikit-learn, but I have not seen any for…

lisandrojim
- 509
- 5
- 18
4
votes
1 answer
Can you explain difference between tensorflow loading and hdf5 loading in keras model
I was trying to load the keras model which I saved during my training.So I went to keras documentation where I saw this.
Only topological loading (by_name=False) is supported when loading
weights from the TensorFlow format. Note that topological…

Fasty
- 784
- 1
- 11
- 34
4
votes
1 answer
How to update Logistic Regression Model?
I have trained a logistic regression model. Now I have to update(partial fit) the model with new set of training data. Is it possible ?

kathir raja
- 640
- 8
- 19
4
votes
1 answer
Show model layout / design (with all connections) in Keras
I have major differences when testing a Keras LSTM model after I've trained it compared to when I load that trained model from a .h5 file (Accuracy of the first is always > 0.85 but of the later is always below < 0.2 i.e. a random guess).
However I…

user3085931
- 1,757
- 4
- 29
- 55
3
votes
1 answer
How can I save or extract my machine learning model developed in Azure ML Studio?
So I have built my machine learning prediction model in Azure ML Studio. I want to use that model for my Web App where I will be using Flask & Heroku for development purpose.

Rakshit Sid
- 41
- 2
2
votes
0 answers
Using a trained keras model to make predictions without downloading tensorflow?
Basically, I have a trained .h5 model (I'm not married to that format, but it's how I inherited the codebase) and want to provide a way for other people in my lab to use this file for prediction. Right now, the call to load_model() inside…

lmhamilt
- 127
- 2
- 8
2
votes
0 answers
Custom Keras Augmentation Layer, Cant get Batch Size
I was trying to create custom augmentation layer in Keras. the idea is to make faster augmentations (instead of running same function BATCH_SIZE times, run it once over the whole batch).
I got stuck in the function:
__call__(inputs, training=False,…

Jhon Margalit
- 451
- 4
- 12
2
votes
0 answers
get parameters of each gaussian curve predicted by Scikit learn Gaussian Mixture model?
I am trying to fit multiple Gaussian curves to my experimental data. The Gaussian mixture model was obtained using sci-kit learn Mixture models. The GM fit over my experimental data is shown in the image below.
As you can see multiple Gaussian…

Kanishk Patel
- 21
- 4
2
votes
1 answer
Deploy a RAPIDS CUML Random Forest model to Windows Virtual Machine where RAPIDS/CUML can't be installed
I need to perform inference for a cuml.dask.ensemble.RandomForestClassifier on a GPU-less Windows virtual machine where rapids/cuml can't be installed.
I have thought to use treelite so I have to import the model into treelite and generate a shared…

user1588190
- 23
- 3
2
votes
1 answer
Test data gives "Found 0 images in 0 classes" using flow_from_directory
This is my flow_from_directory code
train_image_generator = ImageDataGenerator(rescale=1./255)
validation_image_generator = ImageDataGenerator(rescale=1./255)
test_image_generator = ImageDataGenerator(rescale=1./255)
train_data_gen =…

Umair Nasir
- 43
- 1
- 8