ensemble-learning

Tensorflow,ensemble learning, feed multiple datasets of different image size into Keras Model

Tensorflow,ensemble learning, feed multiple datasets of different image size into Keras Model Question: I have an image classification problem for which I’d like to combine different models I’ve trained. for example I have two models: mobilenet_v2_100_96 = tf.keras.models.load_model("saved_model_mobilenet_v2_100_96") mobilenet_v2_100_224 = tf.keras.models.load_model("saved_model_mobilenet_v2_100_224") After which I lock the layers of the models and combine them into an …

Total answers: 1

StackingCVClassifier pre-trained base models

StackingCVClassifier pre-trained base models Question: I haven’t been able to find any information on whether or not StackingCVClassifiers accept pre-trained models. Asked By: BenjaminLi || Source Answers: Probably not. StackedCVClassifiers and StackingClassifier currently take a list of base estimators, then apply fit and predict on them. It’s pretty straightforward to implement this though. The main …

Total answers: 1

predict_proba method available in OneVsRestClassifier

predict_proba method available in OneVsRestClassifier Question: I am using sklearn‘s OneVsOneClassifier in an pipeline like so: smt = SMOTE(random_state=42) base_model = LogisticRegression() pipeline = Pipeline([(‘sampler’, smt), (‘model’, base_model)]) classifier = OneVsOneClassifier(estimator=pipeline) classifier.fit(X_train, y_train) # prediction yhat = classifier.predict(X_test) But then I cannot do: yhat_prob = predict_proba(X_test) AttributeError: ‘OneVsOneClassifier’ object has no attribute ‘predict_proba’ scikit-learns OneVsRestClassifier …

Total answers: 2