Skip to main content

All Questions

Tagged with
-5 votes
0 answers
45 views

Python code problem in Visual Studio with joblib library [closed]

I have a problem, the solution to which is not on the Internet. After painstakingly recalculating all combinations at a certain point this error pops up regardless of n _jobs. I am attaching the code ...
user30419177's user avatar
-1 votes
0 answers
37 views

MobileNet dynamic range quantization breaks model accuracy [closed]

I've been working on building a binary fire detection model that will run on ESP32s based on TF keras MobileNet v2 and transfer trained from ImageNet weights. After training the model and inferencing ...
Ari Stehney's user avatar
0 votes
0 answers
39 views

Trouble loading tensorflow when running cloned repo

So, I'm trying to get the code from this repo https://github.com/amin20/GBM_WSSM working but I'm running into a persistent error. Using TensorFlow backend. Traceback (most recent call last): File &...
Michelle Latham's user avatar
0 votes
0 answers
47 views

model.predict hangs in celery/uwsgi

import numpy as np import tensorflow as tf import tensorflow_hub as hub from apps.common.utils.error_handling import suppress_callable_to_sentry from django.conf import settings from threading import ...
Işık Kaplan's user avatar
1 vote
0 answers
83 views

my clasification A.I. model cant surpass a certain validation precision threshold

I've recently getting started with A.I. and for a project i wanted to create a model that can classify what kind of disease you have based on a chest x-ray, After writing the model and using the ...
No0bYebY's user avatar
  • 111
0 votes
0 answers
28 views

Keras SKLearnClassifier wrapper can't fit MNIST data

I'm trying to use the SKLearnClassifier Keras wrapper to do some grid searching and cross validation using the sklearn library but I'm unable to get the model to work properly. def build_model(X, y, ...
Jesus Diaz Rivero's user avatar
-2 votes
1 answer
42 views

Why is my TensorFlow CNN OCR model outputting incorrect characters for Persian license plates? [closed]

I’m building a FastAPI web API to detect Persian car license plates using YOLOv8 and extract their text with a custom TensorFlow CNN OCR model. YOLOv8 correctly detects the plate’s bounding box, but ...
Saman Zare's user avatar
2 votes
1 answer
53 views

Cannot see all `Dense` layer info from `search_space_summary()` when using `RandomSearch Tuner` in Keras-Tuner?

I am trying to use keras-tuner to tune hyperparameters, like !pip install keras-tuner --upgrade import keras_tuner as kt from tensorflow.keras.models import Sequential from tensorflow.keras.layers ...
ThomasIsCoding's user avatar
0 votes
1 answer
63 views

Why do model.evaluate() vs. manual loss computation with model.predict() in tf.keras do not add up?

I use keras and tensorflow to train a 'simple' Multilayer Perceptron (MLP) for a regression task, where I use the mean-squared error (MSE) as loss-function. I denote my training data as x_train, ...
Red's user avatar
  • 113
0 votes
0 answers
109 views

Getting ValueError: Unexpected object from deserialization, expected a layer or operation, got a <class '__main__.L1Dist'>

here is the code from the Distance layer part because site is not allowing me to upload full code. embedding = make_embedding() distance layer class L1Dist(Layer): def __init__(self, **kwargs): ...
Prateek's user avatar
  • 25
1 vote
1 answer
66 views

Regression error with Python tensorflow keras

could someone please help me to fix the following error : [AttributeError: 'super' object has no attribute 'sklearn_tags'] based on my code : from tensorflow import keras from scikeras.wrappers ...
Arnauld's user avatar
  • 11
0 votes
1 answer
71 views

Is there a reason that tensorflow is not working with Keras?

import os os.environ['TF_ENABLE_ONEDNN_OPTS'] = '0' import tensorflow as tf from tensorflow.keras.layers import Conv1D, MaxPooling1D, GlobalAveragePooling1D, Dense, Dropout, BatchNormalization from ...
Ali Abzakh's user avatar
-1 votes
0 answers
54 views

Does the fact that i have just train, test split using keras image_from_dataset affect my metrics

I've been trying to figure out why my metrics were low after training. I had an F1 score of 75% which is not what i expected at all. I reviewed the code and I suspected the issue was the train, ...
Pelz's user avatar
  • 1
0 votes
1 answer
51 views

Troubleshoot "Invalid input shape for input Tensor"

I am trying to build a model with keras and tensorflow to play Go: training_data = encode_from_file_info(training_files) testing_data = encode_from_file_info(testing_files) input_shape = (...
Code-Apprentice's user avatar
0 votes
0 answers
119 views

Q-values output is NaN in DQN model - input state is normalized and padded

I'm training a Deep Q-Network (DQN) to trade crypto using historical data. My model keeps outputting NaN values for the Q-values during prediction. I'm using a custom function getState2() to generate ...
user29255210's user avatar

15 30 50 per page
1
2 3 4 5
1786