id stringlengths 7 11 | source stringclasses 1
value | category stringclasses 11
values | title stringlengths 15 214 | text stringlengths 70 30.5k | url stringlengths 57 160 | tags stringlengths 3 113 | created_at int64 1.22B 1.79B |
|---|---|---|---|---|---|---|---|
se_79394817 | stackoverflow | MACHINE_LEARNING | How to efficiently make concurrent calls to a local Llama 3.1 model using the ollama-python package? | How to efficiently make concurrent calls to a local Llama 3.1 model using the ollama-python package?
I'm using a local Llama 3.1:7b model. I am interacting with the model using Python and the ollama-python package.
I need to make over 20,000 calls to the model, but I'm currently invoking it sequentially, which is inef... | https://stackoverflow.com/questions/79394817/how-to-efficiently-make-concurrent-calls-to-a-local-llama-3-1-model-using-the-ol | python, machine-learning, concurrency, large-language-model, ollama | 1,738,087,928 |
se_74705902 | stackoverflow | MACHINE_LEARNING | How to fix this error message? tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name | How to fix this error message? tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name
The below code is giving an error message. How do I fix this? Says Graph Execution Error. Facial Emotion detection problem.
history = model3.fit(x= train_set, validation_data = validation_set, batch_size = 32, epochs =... | https://stackoverflow.com/questions/74705902/how-to-fix-this-error-message-tensors-pywrap-tfe-tfe-py-executectx-handle | python, machine-learning, keras | 1,670,343,961 |
se_46910206 | stackoverflow | MACHINE_LEARNING | Extracting bounding boxes and category labels in MS-COCO dataset | Extracting bounding boxes and category labels in MS-COCO dataset
I am working with MS-COCO dataset and I want to extract bounding boxes as well as labels for the images corresponding to backpack (category ID: 27) and laptop (category ID: 73) categories, and store them into different text files to train a neural networ... | https://stackoverflow.com/questions/46910206/extracting-bounding-boxes-and-category-labels-in-ms-coco-dataset | python, dictionary, machine-learning, data-processing, mscoco | 1,508,846,918 |
se_79847465 | stackoverflow | MACHINE_LEARNING | How to get all non-registered models in MLflow? | How to get all non-registered models in MLflow?
I am using MLflow (3.7.0) with PyTorch (2.5.1 + CUDA).
How can I get model(NO REGISTERED) names from MLflow?
I have a function that saves a model whenever it improves compared to the previous epoch. I log the models like this:
mlflow.pytorch.log_model(
model_cpu,
... | https://stackoverflow.com/questions/79847465/how-to-get-all-non-registered-models-in-mlflow | python, machine-learning, pytorch, mlflow | 1,765,782,542 |
se_79931666 | stackoverflow | MACHINE_LEARNING | Java , Python , MERN & ML Libraries | Java , Python , MERN & ML Libraries
I have questions regarding how to integrate my ML application to an MERN stack project here I have an Stock Market predictor model with me so how to I integrate it with my frontend such that it works when a person tries to buy a stock or enter a prompt ... any ideas ? | https://stackoverflow.com/questions/79931666/java-python-mern-ml-libraries | java, python-3.x, selenium-webdriver, machine-learning | 1,777,104,789 |
se_79280367 | stackoverflow | MACHINE_LEARNING | XGBoost WARNING No visible GPU is found, setting device to CPU | XGBoost WARNING No visible GPU is found, setting device to CPU
System Information
XGBoost Version: 2.1.3
NVIDIA Driver Version: 565.57.01
CUDA Version: 12.6 (from nvcc) and 12.7 (from nvidia-smi)
GPU: Tesla T4
Operating System: Ubuntu 24.04
Python Version: 3.11.10
torch.cuda.is_available(): True
Despite the system i... | https://stackoverflow.com/questions/79280367/xgboost-warning-no-visible-gpu-is-found-setting-device-to-cpu | machine-learning, gpu, xgboost | 1,734,167,534 |
se_79934070 | stackoverflow | MACHINE_LEARNING | Why the R^2 value of test data is significantly different from R^2 value of train data? | Why the R^2 value of test data is significantly different from R^2 value of train data?
I am working on a dataset for Housing pricing prediction problem. While I am trying to find an estimation between the features and the dependent variable price, I found there is a significant difference between train R^2 and test R... | https://stackoverflow.com/questions/79934070/why-the-r2-value-of-test-data-is-significantly-different-from-r2-value-of-trai | python, machine-learning | 1,777,534,147 |
se_79934477 | stackoverflow | MACHINE_LEARNING | Do Apache 2.0 licensed segmentation models (e.g., SegNeXt, PP‑LiteSeg) include commercial‑free pretrained weights? | Do Apache 2.0 licensed segmentation models (e.g., SegNeXt, PP‑LiteSeg) include commercial‑free pretrained weights?
I’m evaluating semantic segmentation models like SegNeXt and PP‑LiteSeg, which are released under the Apache 2.0 license. The code is clearly permissive, but I’m unsure about the pretrained weights.
Many ... | https://stackoverflow.com/questions/79934477/do-apache-2-0-licensed-segmentation-models-e-g-segnext-pp-liteseg-include-c | machine-learning, computer-vision, apache2, licensing, semantic-segmentation | 1,777,607,824 |
se_49104612 | stackoverflow | MACHINE_LEARNING | TF-IDF vs XGBoost vs CNN | TF-IDF vs XGBoost vs CNN
I have a Natural Language Dataset where I am performing classification.
The tf-idf model always performs better than a Convolutional Neural Network model.
I have performed a lot of hyperparameter tuning but the performance of the tf-idf model remains better.
In fact, the tf-idf model is per... | https://stackoverflow.com/questions/49104612/tf-idf-vs-xgboost-vs-cnn | machine-learning, deep-learning, conv-neural-network, tf-idf | 1,520,231,191 |
se_79934236 | stackoverflow | MACHINE_LEARNING | Suggentions on open-model to implement LLM text watermarking | Suggentions on open-model to implement LLM text watermarking
As a part of my research problem, I want to fully access a model to implement LLM text watermarking (I need open-weight model to modify hidden states). After researching a bit, I found Qwen2.5-0.5B model that satisfies my requirements. I would like to know:
... | https://stackoverflow.com/questions/79934236/suggentions-on-open-model-to-implement-llm-text-watermarking | machine-learning, artificial-intelligence, large-language-model, semantics, watermark | 1,777,553,816 |
se_59058867 | stackoverflow | MACHINE_LEARNING | Sigmoid output - can it be interpreted as probability? | Sigmoid output - can it be interpreted as probability?
Sigmoid function outputs a number between 0 and 1. Is this a probability or is it merely a 'yes or no' depending on whether it's above or below 0.5?
Minimal example:
Cats vs dogs binary classification. 0 is cat, 1 is dog.
Can I perform the following interpreta... | https://stackoverflow.com/questions/59058867/sigmoid-output-can-it-be-interpreted-as-probability | machine-learning, neural-network, classification, probability, sigmoid | 1,574,800,043 |
se_51464591 | stackoverflow | MACHINE_LEARNING | Test accuracy is greater than training accuracy. What can I do? | Test accuracy is greater than training accuracy. What can I do?
I am using the random forest. My test accuracy is 70%. On the other hand, training accuracy is 34%.
What can I do? How can I solve this problem? | https://stackoverflow.com/questions/51464591/test-accuracy-is-greater-than-training-accuracy-what-can-i-do | machine-learning, regression, random-forest | 1,532,258,675 |
se_79928380 | stackoverflow | MACHINE_LEARNING | Handling imbalanced categorical classification – best approach and evaluation metrics? | Handling imbalanced categorical classification – best approach and evaluation metrics?
I am working on a categorical classification problem using the Portugal Bank Marketing Dataset. The target variable is binary (yes / no), and the dataset is highly imbalanced (far more no than yes).
I want to understand:
What are t... | https://stackoverflow.com/questions/79928380/handling-imbalanced-categorical-classification-best-approach-and-evaluation-me | machine-learning, classification, imbalanced-data | 1,776,618,841 |
se_77053214 | stackoverflow | MACHINE_LEARNING | Make sure all arrays contain the same number of samples | Make sure all arrays contain the same number of samples
Train_data is a dataset which had been uploaded and I am sure my dataset is okay.
Here is my code:
# Separate features and target labels
X = train_data.drop(['label', 'Id'], axis=1) # Features (columns 0 to 36)
y = train_data['label'] # Target labels
print(y.sh... | https://stackoverflow.com/questions/77053214/make-sure-all-arrays-contain-the-same-number-of-samples | machine-learning, keras | 1,694,012,963 |
se_46010571 | stackoverflow | MACHINE_LEARNING | AttributeError: module 'tensorflow.python.pywrap_tensorflow' has no attribute 'TFE_Py_RegisterExceptionClass' | AttributeError: module 'tensorflow.python.pywrap_tensorflow' has no attribute 'TFE_Py_RegisterExceptionClass'
I am trying to develop some time-series sequence prediction, using the latest resources available. To that end, I did check the example code from TensorFlow time-series, but I'm getting this er... | https://stackoverflow.com/questions/46010571/attributeerror-module-tensorflow-python-pywrap-tensorflow-has-no-attribute-t | python, tensorflow, machine-learning, time-series, recurrent-neural-network | 1,504,327,731 |
se_79926183 | stackoverflow | MACHINE_LEARNING | PyTorch training issue with EfficientNetB3 | Validation Accuracy plateu | PyTorch training issue with EfficientNetB3 | Validation Accuracy plateu
Metrics
Before I start, I wanted to add that I’m relatively new to deep learning, so my setup may be overly complex or suboptimal.
I’m training an image classification model (EfficientNet-B3 on grayscale Kanji images) using PyTorch with:
AMP (tor... | https://stackoverflow.com/questions/79926183/pytorch-training-issue-with-efficientnetb3-validation-accuracy-plateu | python, machine-learning, pytorch | 1,776,273,744 |
se_984847 | stackoverflow | MACHINE_LEARNING | Kernel methods for large scale dataset | Kernel methods for large scale dataset
Kernel-based classifier usually requires O(n^3) training time because of the inner-product computation between two instances. To speed up the training, inner-product values can be pre-computed and stored in a two-dimensional array. However when the no. of instances is very large,... | https://stackoverflow.com/questions/984847/kernel-methods-for-large-scale-dataset | arrays, machine-learning, classification, computation | 1,244,777,661 |
se_50296817 | stackoverflow | MACHINE_LEARNING | Scoring in GridSearchCV for XGBoost | Scoring in GridSearchCV for XGBoost
I'm trying to analyze data for the first time using XGBoost. I want to find the best parameters using GridsearchCV. I want to minimize the root mean squared error and to do this, I used "rmse" as eval_metric. However, scoring in grid search does not have such a metric. I found on th... | https://stackoverflow.com/questions/50296817/scoring-in-gridsearchcv-for-xgboost | python, machine-learning, parameters, xgboost, grid-search | 1,526,057,176 |
se_79911827 | stackoverflow | MACHINE_LEARNING | Need Guide for AI/ML | Need Guide for AI/ML
I am looking to grow my career in the AI/ML field, but I am currently feeling a bit confused about the right direction. At the moment, I am learning Python, NumPy, and Pandas.
Could someone please suggest a proper roadmap or recommend useful resources? I would also appreciate guidance on the key t... | https://stackoverflow.com/questions/79911827/need-guide-for-ai-ml | python, machine-learning, deep-learning, artificial-intelligence | 1,774,089,908 |
se_79925354 | stackoverflow | MACHINE_LEARNING | What are the key libraries and documentation for implementing anomaly detection in Python? | What are the key libraries and documentation for implementing anomaly detection in Python?
I am starting a role in industry where I will be working on anomaly detection using machine learning, particularly for data analysis tasks.
I would like to understand which tools and libraries are most commonly used in practice,... | https://stackoverflow.com/questions/79925354/what-are-the-key-libraries-and-documentation-for-implementing-anomaly-detection | python, machine-learning, scikit-learn, anomaly-detection | 1,776,169,589 |
se_1624060 | stackoverflow | MACHINE_LEARNING | Machine learning libraries in C# | Machine learning libraries in C#
Are there any machine learning libraries in C#? I'm after something like WEKA. | https://stackoverflow.com/questions/1624060/machine-learning-libraries-in-c | c#, machine-learning | 1,256,552,632 |
se_79918184 | stackoverflow | MACHINE_LEARNING | On running my flutter app which uses llama_cpp_dart package. It is showing error loading model | On running my flutter app which uses llama_cpp_dart package. It is showing error loading model
I am trying to run a gguf model using llama_cpp_dart v^0.2.2 package. But it is showing model cannot be loaded. The initialize function is what runs these. I checked the llama_cpp folder in lib\src of llama_cpp_dart package ... | https://stackoverflow.com/questions/79918184/on-running-my-flutter-app-which-uses-llama-cpp-dart-package-it-is-showing-error | dart, machine-learning, flutter-dependencies, llamacpp, static-quantization | 1,775,026,824 |
se_79928119 | stackoverflow | MACHINE_LEARNING | Small dataset (~600 images) for facial emotion detection using YOLOv11 + Roboflow — how to collect better training images? | Small dataset (~600 images) for facial emotion detection using YOLOv11 + Roboflow — how to collect better training images?
I am building a small computer vision project (MoodAI Player) where a webcam detects facial emotions and triggers music + LED responses on a Raspberry Pi .
I am planning to train a YOLOv11 model,... | https://stackoverflow.com/questions/79928119/small-dataset-600-images-for-facial-emotion-detection-using-yolov11-roboflo | python, machine-learning, computer-vision, yolo, roboflow | 1,776,557,678 |
se_79926835 | stackoverflow | MACHINE_LEARNING | 'mat1 and mat2 shapes cannot be multiplied', but shape doesn't actually match the data? | 'mat1 and mat2 shapes cannot be multiplied', but shape doesn't actually match the data?
I'm using PyTorch to train a regression model on 5 datasets separately, each 10x3361.
However, when I run PyTorch, it returns the error RuntimeError: mat1 and mat2 shapes cannot be multiplied (10x[some multiple of 1499,... | https://stackoverflow.com/questions/79926835/mat1-and-mat2-shapes-cannot-be-multiplied-but-shape-doesnt-actually-match-th | python, machine-learning, pytorch | 1,776,360,403 |
se_55545498 | stackoverflow | MACHINE_LEARNING | Is SVM with the mnist dataset 100% accurate? | Is SVM with the mnist dataset 100% accurate?
So I wrote a program using sklearn's svm.SVC module to learn the mnist dataset, for some reason whenever i calculate the accuracy its 100%. This seems too good to be true, is this expected?
from sklearn import datasets
from sklearn import svm
digits = datasets.load_digit... | https://stackoverflow.com/questions/55545498/is-svm-with-the-mnist-dataset-100-accurate | python, machine-learning, svm, mnist | 1,554,520,015 |
se_79920811 | stackoverflow | MACHINE_LEARNING | best pure .net machine learning libraries for IoT | best pure .net machine learning libraries for IoT
i wander if u know some good machine learning libraries that allow self host full process of machine learning like preparing data, training and later getting results out of it.
Potential use cases: IoT devices, self hosted microservices.
Don't what to install python an... | https://stackoverflow.com/questions/79920811/best-pure-net-machine-learning-libraries-for-iot | .net, machine-learning | 1,775,464,559 |
se_79925681 | stackoverflow | MACHINE_LEARNING | Requesting an opinion about an extreme optimization pipeline for a YOLOv8 model | Requesting an opinion about an extreme optimization pipeline for a YOLOv8 model
i have an idea about an optimization method that i think if it is done right, it could result for an extremely light model. The Method evolves around a multi-step methodology that either reduce the weight count and the needed performance t... | https://stackoverflow.com/questions/79925681/requesting-an-opinion-about-an-extreme-optimization-pipeline-for-a-yolov8-model | machine-learning, optimization, computer-vision, yolo, yolov8 | 1,776,206,763 |
se_79923897 | stackoverflow | MACHINE_LEARNING | I want to create 2 gems in Gemini , please suggest me the most suitable prompts | I want to create 2 gems in Gemini , please suggest me the most suitable prompts
I want to create two Gems (custom LLMs in Gemini that respond based on specific instructions) for two different tasks. Please suggest the most suitable prompts, based on your experience in both domains, to help a beginner effectively.
1- I... | https://stackoverflow.com/questions/79923897/i-want-to-create-2-gems-in-gemini-please-suggest-me-the-most-suitable-prompts | python, machine-learning, dynamic-programming, greedy | 1,775,890,836 |
se_25902119 | stackoverflow | MACHINE_LEARNING | How to read the output of scikit-learn TfidfVectorizer | How to read the output of scikit-learn TfidfVectorizer
I was reading about TfidfVectorizer implementation of scikit-learn. For example:
new_docs = ['He watches basketball and baseball', 'Julie likes to play basketball', 'Jane loves to play baseball']
new_term_freq_matrix = tfidf_vectorizer.transform(new_docs)
print tf... | https://stackoverflow.com/questions/25902119/how-to-read-the-output-of-scikit-learn-tfidfvectorizer | python, machine-learning, scikit-learn, nlp, feature-extraction | 1,410,997,834 |
se_57251084 | stackoverflow | MACHINE_LEARNING | The Difference between One Hot Encoding and LabelEncoder? | The Difference between One Hot Encoding and LabelEncoder?
I am working on a ML problem to predict house prices and Zip Code is one feature which will be useful. I am also trying to use Random Forest Regressor to predict the log of the price.
However, should I use One Hot Encoding or Label Encoder for Zip Code? Becaus... | https://stackoverflow.com/questions/57251084/the-difference-between-one-hot-encoding-and-labelencoder | machine-learning, scikit-learn, categorical-data, one-hot-encoding | 1,564,393,269 |
se_78807931 | stackoverflow | MACHINE_LEARNING | Catboost Feature Importance Calculation | Catboost Feature Importance Calculation
I fitted a simple binary classification model with only 3 trees and wanted to check if feature importance results are similar to the formula in Catboost documentation (PredictionValuesChange).
After training the model, I followed steps in CatBoost JSON model tutorial and got the... | https://stackoverflow.com/questions/78807931/catboost-feature-importance-calculation | machine-learning, catboost | 1,722,266,942 |
se_62551905 | stackoverflow | MACHINE_LEARNING | Output column already exists error when fit with pipeline PySpark | Output column already exists error when fit with pipeline PySpark
I'm trying to create a pipeline in PySpark in order to prepare my data for Random Forest. I'm using Spark 2.2 (2.2.0.2.6.4.0-91).
My data contains no null values. I identified the categorical columns and numerical columns.
I'm encoding categorical colum... | https://stackoverflow.com/questions/62551905/output-column-already-exists-error-when-fit-with-pipeline-pyspark | apache-spark, machine-learning, pyspark, one-hot-encoding | 1,592,991,114 |
se_79923880 | stackoverflow | MACHINE_LEARNING | I want to create two Gems - please suggest the most suitable prompts | I want to create two Gems - please suggest the most suitable prompts
I want to create two Gems (custom LLMs in Gemini that respond based on specific instructions) for two different tasks. Please suggest the most suitable prompts, based on your experience in both domains, to help a beginner effectively.
1- I have recen... | https://stackoverflow.com/questions/79923880/i-want-to-create-two-gems-please-suggest-the-most-suitable-prompts | python, machine-learning, dynamic-programming | 1,775,885,355 |
se_79917042 | stackoverflow | MACHINE_LEARNING | Best approach to generate embeddings for 10K+ documents in Spring Boot + OpenSearch (performance issue) | Best approach to generate embeddings for 10K+ documents in Spring Boot + OpenSearch (performance issue)
I am building a search system using Spring Boot and OpenSearch.
Current setup:
Using OpenSearch ingest pipeline with text_embedding processor
Each ZIP file contains 10K+ documents
Bulk indexing is used
Problem:
I... | https://stackoverflow.com/questions/79917042/best-approach-to-generate-embeddings-for-10k-documents-in-spring-boot-opensea | spring-boot, machine-learning, nlp, opensearch, jmix | 1,774,864,838 |
se_79922326 | stackoverflow | MACHINE_LEARNING | How to make a 2 Label Confusion Matrix and exporting into a json file? | How to make a 2 Label Confusion Matrix and exporting into a json file?
I have to train a convolutional neural network on a dataset. The NN itself works and does what it's supposed to but now I want to make a confusion matrix and export it into a json file for further viewing.
I tried using the ConfusionMatrix function... | https://stackoverflow.com/questions/79922326/how-to-make-a-2-label-confusion-matrix-and-exporting-into-a-json-file | python, machine-learning, scikit-learn, pytorch | 1,775,663,708 |
se_76488688 | stackoverflow | MACHINE_LEARNING | ValueError: Unknown layer: 'CustomScaleLayer'. Please ensure you are using a`keras.utils.custom_object_scope` | ValueError: Unknown layer: 'CustomScaleLayer'. Please ensure you are using a`keras.utils.custom_object_scope`
tensorflow version : t2.13.0-rc1
import os
import cv2
import numpy as np
import pandas as pd
import tensorflow as tf
import pytesseract as pt
import plotly.express as px
import matplotlib.pyplot as plt... | https://stackoverflow.com/questions/76488688/valueerror-unknown-layer-customscalelayer-please-ensure-you-are-using-aker | python, tensorflow, machine-learning, keras, keras-layer | 1,686,906,809 |
se_57229054 | stackoverflow | MACHINE_LEARNING | How to implement my own ResNet with torch.nn.Sequential in Pytorch? | How to implement my own ResNet with torch.nn.Sequential in Pytorch?
I want to implement a ResNet network (or rather, residual blocks) but I really want it to be in the sequential network form.
What I mean by sequential network form is the following:
## mdl5, from cifar10 tutorial
mdl5 = nn.Sequential(OrderedDict([
... | https://stackoverflow.com/questions/57229054/how-to-implement-my-own-resnet-with-torch-nn-sequential-in-pytorch | machine-learning, neural-network, deep-learning, conv-neural-network, pytorch | 1,564,200,513 |
se_79905489 | stackoverflow | MACHINE_LEARNING | How to improve FPS when using MediaPipe hand tracking with OpenCV in Python? | How to improve FPS when using MediaPipe hand tracking with OpenCV in Python?
I am building a simple AI hand tracking application using MediaPipe and OpenCV in Python.
The program reads frames from a webcam, processes them with MediaPipe Hands, and draws the hand landmarks on the screen.
However, I noticed that the FPS... | https://stackoverflow.com/questions/79905489/how-to-improve-fps-when-using-mediapipe-hand-tracking-with-opencv-in-python | python, opencv, machine-learning, computer-vision, mediapipe | 1,773,241,042 |
se_37976564 | stackoverflow | MACHINE_LEARNING | Simple plots of eigenvectors for sklearn.decomposition.PCA | Simple plots of eigenvectors for sklearn.decomposition.PCA
I'm trying to understand how Principal Component Analysis works and I am testing it on the sklearn.datasets.load_iris dataset. I understand how each step works (e.g. standardize the data, covariance, eigendecomposition, sort for highest eigenvalue, transform ... | https://stackoverflow.com/questions/37976564/simple-plots-of-eigenvectors-for-sklearn-decomposition-pca | python, matplotlib, machine-learning, scikit-learn, pca | 1,466,623,215 |
se_79920330 | stackoverflow | MACHINE_LEARNING | Can i make a Neural network And simply ML Model using a smartphone? (Ain't Have Pc/Laptop Btw) | Can i make a Neural network And simply ML Model using a smartphone? (Ain't Have Pc/Laptop Btw)
I am someone who is currently Learn Python, especially libary for make machine learn, but i am not have pc/laptop , can i make my own ML & Neural model?
I haveI've heard that we can use Google Colab for code, Hugging fac... | https://stackoverflow.com/questions/79920330/can-i-make-a-neural-network-and-simply-ml-model-using-a-smartphone-aint-have | android, numpy, tensorflow, machine-learning, artificial-intelligence | 1,775,359,028 |
se_79919607 | stackoverflow | MACHINE_LEARNING | can we clear noise on sensor data for anomaly detection? | can we clear noise on sensor data for anomaly detection?
I am recently working on a project where I've large amount of sensor data, and my main goal is to detect the failure of machine/sensor at a particular time, also explain why machine has an anomaly?
ex. "Temprature accidently spikes up and pressure doesn't"
I've ... | https://stackoverflow.com/questions/79919607/can-we-clear-noise-on-sensor-data-for-anomaly-detection | machine-learning, deep-learning, time-series, shap, anomaly-detection | 1,775,219,611 |
se_59209051 | stackoverflow | MACHINE_LEARNING | feature importance with ExtraTreesClassifier return all zeros | feature importance with ExtraTreesClassifier return all zeros
I want to compute the features importances of a given dataset using ExtraTreesClassifier. My target is to find high scored features for further classification processes. X dataset has a size (10000, 50) where 50 columns are the features and this dataset rep... | https://stackoverflow.com/questions/59209051/feature-importance-with-extratreesclassifier-return-all-zeros | python, machine-learning, feature-selection | 1,575,618,909 |
se_79918983 | stackoverflow | MACHINE_LEARNING | How to extract rooms and dimensions from MEP/floor plan drawings using AI or computer vision? | How to extract rooms and dimensions from MEP/floor plan drawings using AI or computer vision?
I’m working on a project where I want to use AI / computer vision to read MEP (Mechanical, Electrical, Plumbing) drawings or floor plans.
My goal is to:
Detect rooms and extract their labels (e.g., “Bedroom”, “Kitchen”)
Ext... | https://stackoverflow.com/questions/79918983/how-to-extract-rooms-and-dimensions-from-mep-floor-plan-drawings-using-ai-or-com | opencv, machine-learning, image-processing, computer-vision, ocr | 1,775,128,572 |
se_56211249 | stackoverflow | MACHINE_LEARNING | Distributed Python On Multi Machine Cluster | Distributed Python On Multi Machine Cluster
Following is the Requirement -:
class MultiMachineDoWork:
def Function1(self, A, B):
return A+B
def Function2(self, A, B):
return A*B
def Function3(self, A, B):
return A**B
def Function4():
X = MultiMachineDoWor... | https://stackoverflow.com/questions/56211249/distributed-python-on-multi-machine-cluster | python, machine-learning, distributed-computing | 1,558,293,684 |
se_79916898 | stackoverflow | MACHINE_LEARNING | Is the torch.fx traced graph topologically sorted? | Is the torch.fx traced graph topologically sorted?
Dependency layer: The layers whose outputs are passed to the current layer. Basically, The current layer is dependent on the outputs of the dependency layers.
For a project, I need to know if the graph traced by torch.fx is topologically sorted(because i want the depe... | https://stackoverflow.com/questions/79916898/is-the-torch-fx-traced-graph-topologically-sorted | machine-learning, pytorch, torch | 1,774,849,272 |
se_37588632 | stackoverflow | MACHINE_LEARNING | Why use softmax only in the output layer and not in hidden layers? | Why use softmax only in the output layer and not in hidden layers?
Most examples of neural networks for classification tasks I've seen use the a softmax layer as output activation function. Normally, the other hidden units use a sigmoid, tanh, or ReLu function as activation function. Using the softmax function here wo... | https://stackoverflow.com/questions/37588632/why-use-softmax-only-in-the-output-layer-and-not-in-hidden-layers | machine-learning, neural-network, classification, softmax, activation-function | 1,464,861,668 |
se_57273694 | stackoverflow | MACHINE_LEARNING | How SelectKBest (chi2) calculates score? | How SelectKBest (chi2) calculates score?
I am trying to find the most valuable features by applying feature selection methods to my dataset. Im using the SelectKBest function for now. I can generate the score values and sort them as I want, but I don't understand exactly how this score value is calculated. I know that... | https://stackoverflow.com/questions/57273694/how-selectkbest-chi2-calculates-score | python, machine-learning, scikit-learn, feature-selection, chi-squared | 1,564,495,749 |
se_79915504 | stackoverflow | MACHINE_LEARNING | Generic sklearn template | Generic sklearn template
I am creating a reusable scikit-learn pipeline for tabular data with numeric and categorical columns.
I want to:
Impute missing numeric values with the median
Scale numeric columns
Impute categorical values with the most frequent value
One-hot encode categorical columns
Here is my curren... | https://stackoverflow.com/questions/79915504/generic-sklearn-template | python, pandas, machine-learning, scikit-learn | 1,774,592,450 |
se_79915481 | stackoverflow | MACHINE_LEARNING | Is this modular scikit-learn pipeline design correct for a binary classification task? | Is this modular scikit-learn pipeline design correct for a binary classification task?
I'm building a modular machine learning pipeline for a binary classification problem using scikit-learn.
I structured the code into separate functions for preprocessing, scaling, and model training.
I would like to verify whether th... | https://stackoverflow.com/questions/79915481/is-this-modular-scikit-learn-pipeline-design-correct-for-a-binary-classification | python, pandas, dataframe, machine-learning, scikit-learn | 1,774,589,221 |
se_30285706 | stackoverflow | MACHINE_LEARNING | Detecting similar paragraphs in two documents | Detecting similar paragraphs in two documents
I am trying to find similar paragraphs in 2 documents. Each document has many paragraphs of multiple lines of text. The text in paragraphs has some changes. The words can be inserted or deleted or miss-spelled. For example
Doc1.Para
This is one line of text
Doc2.Para
T... | https://stackoverflow.com/questions/30285706/detecting-similar-paragraphs-in-two-documents | machine-learning, nlp | 1,431,857,239 |
se_79915543 | stackoverflow | MACHINE_LEARNING | LightFM for purchase data: how should I prepare interaction weights? Current approach uses per-user frequency normalized by max item frequency | LightFM for purchase data: how should I prepare interaction weights? Current approach uses per-user frequency normalized by max item frequency
I am training a recommendation model with LightFM on implicit purchase data.
In my dataset, each interaction represents a transaction: a user buys an item.
If a user buys the s... | https://stackoverflow.com/questions/79915543/lightfm-for-purchase-data-how-should-i-prepare-interaction-weights-current-app | python, machine-learning, recommendation-engine, fine-tuning, lightfm | 1,774,597,447 |
se_79915737 | stackoverflow | MACHINE_LEARNING | Best practice for maintaining chat history/context in a .NET application and deciding where to call the Web API (Application vs Azure ML Studio) | Best practice for maintaining chat history/context in a .NET application and deciding where to call the Web API (Application vs Azure ML Studio)
I am developing a .NET application that uses Machine Learning (Azure ML / AI model) to generate responses. I want the system to maintain chat history or context similar to ho... | https://stackoverflow.com/questions/79915737/best-practice-for-maintaining-chat-history-context-in-a-net-application-and-dec | .net, azure, machine-learning, artificial-intelligence, webapi | 1,774,616,924 |
se_79915063 | stackoverflow | MACHINE_LEARNING | Minimal template for tabular ML classification (train/test split + preprocessing + prediction) | Minimal template for tabular ML classification (train/test split + preprocessing + prediction)
I am working on a classical machine learning problem where I am given a training dataset with labels and a separate test dataset without labels.
What is a simple and efficient approach to preprocess tabular data using Python... | https://stackoverflow.com/questions/79915063/minimal-template-for-tabular-ml-classification-train-test-split-preprocessing | machine-learning | 1,774,530,821 |
se_79915485 | stackoverflow | MACHINE_LEARNING | XGBoost Pipeline with ColumnTransformer: Handling categorical + numerical data and improving accuracy | XGBoost Pipeline with ColumnTransformer: Handling categorical + numerical data and improving accuracy
I am building a classification model using XGBoost with a Scikit-learn Pipeline that includes preprocessing for both numerical and categorical features.
import pandas as pd
import numpy as np
from xgboost import XGBCl... | https://stackoverflow.com/questions/79915485/xgboost-pipeline-with-columntransformer-handling-categorical-numerical-data-a | python, pandas, machine-learning, scikit-learn | 1,774,589,704 |
se_79915249 | stackoverflow | MACHINE_LEARNING | Fast keypoint annotation tool | Fast keypoint annotation tool
I’m currently working on annotating a human pose dataset (specifically of people swimming) and I’m struggling to find a tool that fits my workflow.
I’m looking for a click‑based labeling workflow, where I can define a specific order in which keypoints are placed and then simply click to p... | https://stackoverflow.com/questions/79915249/fast-keypoint-annotation-tool | machine-learning, computer-vision, annotations, dataset, training-data | 1,774,546,681 |
se_75093044 | stackoverflow | MACHINE_LEARNING | how to design a custom loss function to add two loss | how to design a custom loss function to add two loss
I am using CNN to solve a regression problem in a supervised manner. i have input data(X_train) and the target data(y_train). | https://stackoverflow.com/questions/75093044/how-to-design-a-custom-loss-function-to-add-two-loss | tensorflow, machine-learning, tensorflow2.0, tf.keras, loss-function | 1,673,509,734 |
se_79910420 | stackoverflow | MACHINE_LEARNING | How to start contributing to open-source and how to enter such communities and what are the best communities? | How to start contributing to open-source and how to enter such communities and what are the best communities?
I am a recent graduate from a reputed college in India although I got good job offers from my college I still regret in one aspect of my CS journey, that is I have zero contributions to any open-source project... | https://stackoverflow.com/questions/79910420/how-to-start-contributing-to-open-source-and-how-to-enter-such-communities-and-w | linux, git, machine-learning, computer-science, open-source | 1,773,896,261 |
se_79913973 | stackoverflow | MACHINE_LEARNING | Precision Recall Curve Not Behaving As Expected | Precision Recall Curve Not Behaving As Expected
I am training a model in Python.
The problem is a class-imbalance classification problem at ~1:50 ratio.
In most problems, precision-recall curve follows a smooth drop from 100% precision & 0% recall to 0% precision and 100% recall (see: https://towardsai.net/p/l/precisi... | https://stackoverflow.com/questions/79913973/precision-recall-curve-not-behaving-as-expected | python, machine-learning, imbalanced-data | 1,774,410,440 |
se_60229459 | stackoverflow | MACHINE_LEARNING | How to create test suite for any broken images using machine learning based algoritham/ AI based Automation | How to create test suite for any broken images using machine learning based algoritham/ AI based Automation
I am working on a sizeable large eCommerce web-portal where, there are many images on thousands of CMS generated dynamic pages.
The location of the image on page is fixed.
How to create a Javascript / Machine L... | https://stackoverflow.com/questions/60229459/how-to-create-test-suite-for-any-broken-images-using-machine-learning-based-algo | selenium, machine-learning, cypress, webdriver-io | 1,581,695,120 |
se_79913234 | stackoverflow | MACHINE_LEARNING | Improving precision in LLM-based binary classification by detecting ambiguous cases | Improving precision in LLM-based binary classification by detecting ambiguous cases
I’m working on a prompt-based binary classification task using an LLM, where the main goal is to maximize precision.
Instead of assigning a label to every input, I want the system to:
• Assign a label only when confident
• Flag amb... | https://stackoverflow.com/questions/79913234/improving-precision-in-llm-based-binary-classification-by-detecting-ambiguous-ca | machine-learning, nlp, classification, large-language-model, text-classification | 1,774,330,277 |
se_79912564 | stackoverflow | MACHINE_LEARNING | Built a Continued Pretraining + Fine-Tuning pipeline for a Veterinary Drug LLM on BioGPT-Large — Looking for feedback on my approach | Built a Continued Pretraining + Fine-Tuning pipeline for a Veterinary Drug LLM on BioGPT-Large — Looking for feedback on my approach
I've been working on adapting Microsoft's BioGPT-Large for veterinary pharmacology using Plumb's Veterinary Drug Handbook (2023) as my domain corpus. After going through a lot of trial a... | https://stackoverflow.com/questions/79912564/built-a-continued-pretraining-fine-tuning-pipeline-for-a-veterinary-drug-llm-o | tensorflow, machine-learning, artificial-intelligence, fine-tuning, rag | 1,774,238,342 |
se_78076239 | stackoverflow | MACHINE_LEARNING | How to efficiently calculate gradients of all outputs with respect to parameters? | How to efficiently calculate gradients of all outputs with respect to parameters?
I have a relatively simple requirement but surprisingly this does not seem to be straightforward to implement in pytorch. Given a neural network with $P$ parameters that outputs a vector of length $Y$ and a batch of $B$ data inputs, I wo... | https://stackoverflow.com/questions/78076239/how-to-efficiently-calculate-gradients-of-all-outputs-with-respect-to-parameters | python, machine-learning, deep-learning, pytorch | 1,709,138,847 |
se_79906246 | stackoverflow | MACHINE_LEARNING | How to train a text datasets? | How to train a text datasets?
Everyone!!
I'm a BSIT student and currently in a development of a capstone project which is a translation app which focuses on the 2 major languages in the Philippines which is Cebuano and Tagalog
I just want to have some advice in terms of training text datasets for us to build a transla... | https://stackoverflow.com/questions/79906246/how-to-train-a-text-datasets | machine-learning, dataset, training-data, language-translation | 1,773,324,042 |
se_79892291 | stackoverflow | MACHINE_LEARNING | ModelCheckpoint not saving last validating checkpoint when save_last=True | ModelCheckpoint not saving last validating checkpoint when save_last=True
I am using pytorch lightning to train my model, here I use the lightning callback ModelCheckpoint, with the following settings:
ModelCheckpoint(
dirpath="path/to/dir",
monitor="val_loss",
mode="min",
filename="best_model",
sa... | https://stackoverflow.com/questions/79892291/modelcheckpoint-not-saving-last-validating-checkpoint-when-save-last-true | python, machine-learning, pytorch, pytorch-lightning | 1,771,512,631 |
se_79907111 | stackoverflow | MACHINE_LEARNING | Error with XGBoost predicting on new data when there is no target column | Error with XGBoost predicting on new data when there is no target column
In many data science competitions the user is asked to predict on new data when the target is not given in the new data set. The target is given in the training data set, but not the test set.
For example: https://www.kaggle.com/competitions/play... | https://stackoverflow.com/questions/79907111/error-with-xgboost-predicting-on-new-data-when-there-is-no-target-column | r, machine-learning, xgboost | 1,773,424,469 |
se_79908408 | stackoverflow | MACHINE_LEARNING | NeMo cashe-aware streaming multilingual ASR training | NeMo cashe-aware streaming multilingual ASR training
I started training nemo's hybrid rnnt ctc cashe aware streaming large multilingual model with code-switching. i wanted to ask if total 1300 hours of dataset will be enough? and somehow I noticed that in first epoch after some steps, model was predicting some words (... | https://stackoverflow.com/questions/79908408/nemo-cashe-aware-streaming-multilingual-asr-training | python, machine-learning, artificial-intelligence, data-science | 1,773,656,123 |
se_79908234 | stackoverflow | MACHINE_LEARNING | Optimization strategies for deploying multi-modal emotion recognition models on Nuvoton M55M1 (Cortex-M55) with Ethos-U55 NPU | Optimization strategies for deploying multi-modal emotion recognition models on Nuvoton M55M1 (Cortex-M55) with Ethos-U55 NPU
I am currently working on an edge computing project.enter image description here The system analyzes both facial micro-expressions (via CMOS camera) and Electrodermal Activity (EDA) signals.
Ha... | https://stackoverflow.com/questions/79908234/optimization-strategies-for-deploying-multi-modal-emotion-recognition-models-on | machine-learning, embedded, tensorflow-lite, edge-detection, mcu | 1,773,637,566 |
se_40075200 | stackoverflow | MACHINE_LEARNING | Small bug in backpropagation algorithm in r | Small bug in backpropagation algorithm in r
I've been trying to implement backpropagation in R, but I've been getting some strange results. It appears that after 1000 iterations of backprop, the program predicts 1 for all values. I was hoping it was a problem in the test function, but testing on smaller numbers of ite... | https://stackoverflow.com/questions/40075200/small-bug-in-backpropagation-algorithm-in-r | r, machine-learning, neural-network, backpropagation | 1,476,650,390 |
se_79904126 | stackoverflow | MACHINE_LEARNING | What Raspberry-pi choose to make meteo station with neural network predictions? | What Raspberry-pi choose to make meteo station with neural network predictions?
There will be many sensors (temperature, humidity, particle, CO₂, etc.) they will get number reading and neural network will make prediction on their change. Can I get away with RPI 3B 1 GB RAM? Will it be okay with TensorFlow Lite? | https://stackoverflow.com/questions/79904126/what-raspberry-pi-choose-to-make-meteo-station-with-neural-network-predictions | machine-learning, raspberry-pi, sensors | 1,773,088,348 |
se_79907194 | stackoverflow | MACHINE_LEARNING | How can I make use of large amounts of unlabelled in-domain text in a supervised hate speech detection project? | How can I make use of large amounts of unlabelled in-domain text in a supervised hate speech detection project?
I’m building supervised hate speech detection models and comparing transformer-based approaches such as BERT with more traditional machine learning models. I already have a fairly large labelled dataset, but... | https://stackoverflow.com/questions/79907194/how-can-i-make-use-of-large-amounts-of-unlabelled-in-domain-text-in-a-supervised | machine-learning, svm, bert-language-model, unsupervised-learning, supervised-learning | 1,773,433,893 |
se_79906686 | stackoverflow | MACHINE_LEARNING | Can half-precision fp16 can transfer hyperparameter that tuned to fp32 directly or not? | Can half-precision fp16 can transfer hyperparameter that tuned to fp32 directly or not?
I use google colab to train my model
I have trained the model on fp32 and use random grid to search the hyperparameter. the training phase is slow; it takes around 3.24it/s.
I want to ask can I use the tuned hyperparameter from fp1... | https://stackoverflow.com/questions/79906686/can-half-precision-fp16-can-transfer-hyperparameter-that-tuned-to-fp32-directly | machine-learning, pytorch, artificial-intelligence, hyperparameters, automatic-mixed-precision | 1,773,382,684 |
se_79904741 | stackoverflow | MACHINE_LEARNING | Normalization strategy for high-G (8.13g) sensors in TinyML and INT8 quantization? | Normalization strategy for high-G (8.13g) sensors in TinyML and INT8 quantization?
Our team is building a specialized maritime logistics monitoring system designed to run on resource-constrained hardware, specifically an ARM Cortex-M4 microcontroller. We are using the TensorFlow Lite Micro framework as our primary inf... | https://stackoverflow.com/questions/79904741/normalization-strategy-for-high-g-8-13g-sensors-in-tinyml-and-int8-quantizatio | python, machine-learning, normalization, tensorflow-lite | 1,773,160,903 |
se_79904109 | stackoverflow | MACHINE_LEARNING | How to push Logistic Regression AUC above 0.91 for a customer churn prediction model? | How to push Logistic Regression AUC above 0.91 for a customer churn prediction model?
I am building a binary classification model to predict customer churn. I am currently using a Logistic Regression model in scikit-learn and have managed to achieve an ROC-AUC score of 0.91 on my test set, but I am looking for strateg... | https://stackoverflow.com/questions/79904109/how-to-push-logistic-regression-auc-above-0-91-for-a-customer-churn-prediction-m | python, machine-learning, model, linear-regression, auc | 1,773,086,522 |
se_79904894 | stackoverflow | MACHINE_LEARNING | Can I solve the problem of determining the boundaries of cars on a train using classical machine learning methods? | Can I solve the problem of determining the boundaries of cars on a train using classical machine learning methods?
I have the task of defining the boundaries of the carriages in the train. But I don't have any labeled data for neural network training. Can I solve this problem using mathematics and classical machine le... | https://stackoverflow.com/questions/79904894/can-i-solve-the-problem-of-determining-the-boundaries-of-cars-on-a-train-using-c | machine-learning, yolo | 1,773,176,832 |
se_76319374 | stackoverflow | MACHINE_LEARNING | Transliteration from a source language to Roman (English) script | Transliteration from a source language to Roman (English) script
We need the Romanization feature badly. Can someone please help? We want to transliterate (not translate) from Hindi (Devanagiri script) language to English (Roman script) language.
Input
romanize_text('अंतिम लक्ष्य क्या है')
Expected Output
'antim laksh... | https://stackoverflow.com/questions/76319374/transliteration-from-a-source-language-to-roman-english-script | machine-learning, nlp, google-api, artificial-intelligence, transliteration | 1,684,887,848 |
se_79904353 | stackoverflow | MACHINE_LEARNING | 2 YOE Full‑Stack dev: how to choose between AI and Blockchain? | 2 YOE Full‑Stack dev: how to choose between AI and Blockchain?
I have ~2 years of experience as a software engineer working across full‑stack web and some mobile development.
I want to upskill for better growth and salary, and I’m currently stuck between focusing on Blockchain or AI.
For Blockchain, I have a rough id... | https://stackoverflow.com/questions/79904353/2-yoe-full-stack-dev-how-to-choose-between-ai-and-blockchain | machine-learning, artificial-intelligence, blockchain, solidity | 1,773,126,460 |
se_75260541 | stackoverflow | MACHINE_LEARNING | How to make a stacked Keras LSTM | How to make a stacked Keras LSTM
My Tensorflow non-stacked LSTM model code works well for this:
# reshape input to be [samples, time steps, features]
trainX = np.reshape(trainX, (trainX.shape[0], 1, trainX.shape[1]))
testX = np.reshape(testX, (testX.shape[0], 1, testX.shape[1]))
# create and fit the LSTM network
mode... | https://stackoverflow.com/questions/75260541/how-to-make-a-stacked-keras-lstm | python, tensorflow, machine-learning, lstm, tf.keras | 1,674,835,411 |
se_79850470 | stackoverflow | MACHINE_LEARNING | Tensorflow Keras Autoencoder Masking Features not Timesteps | Tensorflow Keras Autoencoder Masking Features not Timesteps
I have Conv1D autoencoder network, and i a have unreliable data source of a data stream, speaking i receive different event patterns at fixed interval of e.g. 2 seconds. Sometimes I have 4 different event types, sometimes only 2.
In preprocessing i transpose ... | https://stackoverflow.com/questions/79850470/tensorflow-keras-autoencoder-masking-features-not-timesteps | tensorflow, machine-learning, keras, stream, autoencoder | 1,766,072,672 |
se_79859326 | stackoverflow | MACHINE_LEARNING | How to deal with Array-Valued Features for Traditional Machine Learning Models | How to deal with Array-Valued Features for Traditional Machine Learning Models
I am working with a dataset where I’ve extracted features from another set of datasets for a classification task. These features are numerical, but some of the features are represented as an array of floats, and the arrays have varying shap... | https://stackoverflow.com/questions/79859326/how-to-deal-with-array-valued-features-for-traditional-machine-learning-models | arrays, machine-learning, feature-selection | 1,767,375,541 |
se_79861609 | stackoverflow | MACHINE_LEARNING | Step wise pattern prediction of prices | Step wise pattern prediction of prices
I have sample dataset where prices are stable few days/week/months and then falls/raise and stays in that price again for few days/weeks/months.
Basically it looks like step down and up when you visualise it. How can I build a model for such patterns?
currently I am thinking of b... | https://stackoverflow.com/questions/79861609/step-wise-pattern-prediction-of-prices | machine-learning, computer-vision, artificial-intelligence, data-science | 1,767,701,854 |
se_79889100 | stackoverflow | MACHINE_LEARNING | Is there an encoder–decoder model that allows editing latent embeddings and regenerating text? | Is there an encoder–decoder model that allows editing latent embeddings and regenerating text?
I have a sentence embedding created by a semantic encoder such as:
embedding = model.encode("I am happy")
I then compute an emotion direction vector in the same embedding space, for example:
emotion_vec = embedding_happy - ... | https://stackoverflow.com/questions/79889100/is-there-an-encoder-decoder-model-that-allows-editing-latent-embeddings-and-rege | python, machine-learning, artificial-intelligence | 1,771,030,769 |
se_57464134 | stackoverflow | MACHINE_LEARNING | How does the MAE and MSE criterion affect the way a tree splits in scikit's RandomForestRegressor() | How does the MAE and MSE criterion affect the way a tree splits in scikit's RandomForestRegressor()
I want to understand what actually happens when a node splits depending on the chosen 'criterion' in the latest scikit version of RandomForestRegressor (RFR).
RandomForestClassifier() has criterion options such as ... | https://stackoverflow.com/questions/57464134/how-does-the-mae-and-mse-criterion-affect-the-way-a-tree-splits-in-scikits-rand | python, machine-learning, scikit-learn, regression, random-forest | 1,565,623,923 |
se_50230385 | stackoverflow | MACHINE_LEARNING | How to get accuracy for all the predicted class labels | How to get accuracy for all the predicted class labels
How can I find the overall accuracy of the outputs that we got by running a decision tree algorithm.I am able to get the top five class labels for the active user input but I am getting the accuracy for the X_train and Y_train dataset using accuracy_score().Suppos... | https://stackoverflow.com/questions/50230385/how-to-get-accuracy-for-all-the-predicted-class-labels | python, machine-learning, scikit-learn | 1,525,771,900 |
se_79902404 | stackoverflow | MACHINE_LEARNING | NL-to-SQL pipeline with PostgreSQL — join path selection, reserved word errors, and query accuracy | NL-to-SQL pipeline with PostgreSQL — join path selection, reserved word errors, and query accuracy
i'm building a Natural Language to SQL system that;
Connects to any PostgreSQL database and auto-introspects schema using information_schema
Builds a graph of table relationships using NetworkX
Uses sentence-transform... | https://stackoverflow.com/questions/79902404/nl-to-sql-pipeline-with-postgresql-join-path-selection-reserved-word-errors | python, postgresql, machine-learning, large-language-model | 1,772,815,311 |
se_79888024 | stackoverflow | MACHINE_LEARNING | Keras ImageDataGenerator width_shift_range moving vertically despite correct input shape (H, W, C) | Keras ImageDataGenerator width_shift_range moving vertically despite correct input shape (H, W, C)
I am experiencing a very strange issue with Keras ImageDataGenerator.
I have a landscape image with shape (1056, 2000, 3).
Height (Axis 0): 1056
Width (Axis 1): 2000
When I use plt.imshow(), the axes are displayed co... | https://stackoverflow.com/questions/79888024/keras-imagedatagenerator-width-shift-range-moving-vertically-despite-correct-inp | python, tensorflow, machine-learning, keras, imagedatagenerator | 1,770,892,433 |
se_55748792 | stackoverflow | MACHINE_LEARNING | Understanding Precision@K, AP@K, MAP@K | Understanding Precision@K, AP@K, MAP@K
I'm currently evaluating a recommender system based on implicit feedback. I've been a bit confused with regard to the evaluation metrics for ranking tasks. Specifically, I am looking to evaluate by both precision and recall.
Precision@k has the advantage of not requiring any ... | https://stackoverflow.com/questions/55748792/understanding-precisionk-apk-mapk | machine-learning, recommendation-engine | 1,555,599,706 |
se_79901491 | stackoverflow | MACHINE_LEARNING | GPU-accelerated t-SNE | GPU-accelerated t-SNE
Up to this point, I have only used scikit-learn’s t-SNE algorithm. This approach takes a long time to produce good results for high-dimensional datasets with many samples. Should I consider using a GPU-accelerated option? If so, which libraries or models would you recommend. | https://stackoverflow.com/questions/79901491/gpu-accelerated-t-sne | machine-learning, data-science, tsne | 1,772,708,660 |
se_79901479 | stackoverflow | MACHINE_LEARNING | How can KV cache work beyond the second layer transformer for a seocnd token? | How can KV cache work beyond the second layer transformer for a seocnd token?
Suppose x^1[i] be a sequence of tokens indexed by i that feed into the transformer, i.e. the fist input vector x^1. Once passing through each transformer layer, x^1[i,j] got transformed to the new contextualized vector x^1_[i,j+1] while the ... | https://stackoverflow.com/questions/79901479/how-can-kv-cache-work-beyond-the-second-layer-transformer-for-a-seocnd-token | machine-learning, caching, transformer-model | 1,772,707,065 |
se_79901402 | stackoverflow | MACHINE_LEARNING | Design ideas for a machine to separate, count, and bag plastic security seals | Design ideas for a machine to separate, count, and bag plastic security seals
I am looking for ideas on designing or sourcing a small automated machine for a seal-packing workflow.
In my operation, plastic security seals are supplied in boxes as aligned strips. Each strip contains 8 seals arranged in a 4 × 2 layout. F... | https://stackoverflow.com/questions/79901402/design-ideas-for-a-machine-to-separate-count-and-bag-plastic-security-seals | machine-learning | 1,772,699,856 |
se_52145992 | stackoverflow | MACHINE_LEARNING | How do we analyse a loss vs epochs graph? | How do we analyse a loss vs epochs graph?
I'm training a language model and the loss vs epochs is plotted each time of training. I'm attaching two samples from it.
Obviously, the second one is showing better performance. But, from these graphs, when do we take a decision to stop training (early stopping)?
Can w... | https://stackoverflow.com/questions/52145992/how-do-we-analyse-a-loss-vs-epochs-graph | machine-learning, nlp, lstm, pytorch, recurrent-neural-network | 1,535,963,680 |
se_79894547 | stackoverflow | MACHINE_LEARNING | how to develop a production grade chatbot using open source tools and libraries in python | how to develop a production grade chatbot using open source tools and libraries in python
So.. I work in this company where there are no senior devs, and I'm a fresher with no idea on how to develop production level apps. Also the manager stated that i have to use only open source tools and libraries for this. The cus... | https://stackoverflow.com/questions/79894547/how-to-develop-a-production-grade-chatbot-using-open-source-tools-and-libraries | python, machine-learning, chatbot | 1,771,845,515 |
se_79512981 | stackoverflow | MACHINE_LEARNING | Facing ModuleNotFoundError: No module named 'ragas.metrics.critique' | Facing ModuleNotFoundError: No module named 'ragas.metrics.critique'
I am getting below error when running the code snippet in AWS sagemaker JupyterLab notebook:
ModuleNotFoundError: No module named 'ragas.metrics.critique'
import warnings
warnings.filterwarnings('ignore') # ignore warnings related to pyda... | https://stackoverflow.com/questions/79512981/facing-modulenotfounderror-no-module-named-ragas-metrics-critique | machine-learning, langchain, py-langchain, amazon-bedrock, ragas | 1,742,147,365 |
se_79898570 | stackoverflow | MACHINE_LEARNING | Tensorflow Keras CV tutorials incorrectly working | Tensorflow Keras CV tutorials incorrectly working
I'm starting learning Machine Learning by Tensorflow Keras CV tutorials and two of my tutorial projects are not working correctly.
I use these tutorials:
https://www.tensorflow.org/tutorials/load_data/images
https://www.tensorflow.org/tutorials/keras/classification
And... | https://stackoverflow.com/questions/79898570/tensorflow-keras-cv-tutorials-incorrectly-working | python, tensorflow, machine-learning, keras | 1,772,306,461 |
se_79898560 | stackoverflow | MACHINE_LEARNING | How to handle inconsistent speech recognition results in a low-resource language application | How to handle inconsistent speech recognition results in a low-resource language application
I am working on a language learning application for a low-resource language, using speech recognition to support pronunciation and speaking practice.
One issue I encounter is that the same spoken sentence can produce slightly ... | https://stackoverflow.com/questions/79898560/how-to-handle-inconsistent-speech-recognition-results-in-a-low-resource-language | machine-learning, nlp, speech-recognition | 1,772,305,133 |
se_79897257 | stackoverflow | MACHINE_LEARNING | Which languages are the best ones to opt for if the final goal is full stack and perhaps a switch into the ML and AI world | Which languages are the best ones to opt for if the final goal is full stack and perhaps a switch into the ML and AI world
I am looking for languages that serve as the best foundational languages I would need to step into full stack development, and use that base and experience to maybe switch to ML, AI, Data Science,... | https://stackoverflow.com/questions/79897257/which-languages-are-the-best-ones-to-opt-for-if-the-final-goal-is-full-stack-and | javascript, html, css, machine-learning, react-fullstack | 1,772,125,281 |
se_79843617 | stackoverflow | MACHINE_LEARNING | Best sites to gather cheat-sheets/notes | Best sites to gather cheat-sheets/notes
I am someone who likes to study via online notes and documentation, but I would really like it if there were a website with a collection of short notes and/or cheat sheets so that I can revise the topics efficiently. It would be really helpful if someone could suggest some websi... | https://stackoverflow.com/questions/79843617/best-sites-to-gather-cheat-sheets-notes | python, c++, git, machine-learning | 1,765,429,108 |
se_48637400 | stackoverflow | MACHINE_LEARNING | Tensorflow Object Detection API - Adding more training data half way, is it ok? | Tensorflow Object Detection API - Adding more training data half way, is it ok?
I have a total of 300 images for the training dataset, the current saved checkpoint is 8054. Trained for 10 hours and having accuracy of around 50%. The model is required to detect only one object.
I wish to improve the accuracy. So, I am ... | https://stackoverflow.com/questions/48637400/tensorflow-object-detection-api-adding-more-training-data-half-way-is-it-ok | tensorflow, machine-learning, object-detection | 1,517,901,265 |
se_79770352 | stackoverflow | MACHINE_LEARNING | How to load a model while ignoring unbuilt head layers? (`expected 2 variables, received 0`) | How to load a model while ignoring unbuilt head layers? (`expected 2 variables, received 0`)
I’m loading a custom ViT backbone saved via MLflow’s TensorFlow flavor (Keras 3). The artifact includes backbone parts I want (patch_embed, encoder) a couple of layers in the encoder were saved in a partially built state. Whe... | https://stackoverflow.com/questions/79770352/how-to-load-a-model-while-ignoring-unbuilt-head-layers-expected-2-variables | tensorflow, machine-learning, keras, mlflow, keras-3 | 1,758,377,792 |
se_79818158 | stackoverflow | MACHINE_LEARNING | Is it possible to train and run a small AI model on a Raspberry Pi 5 to solve text-based CAPTCHAs? | Is it possible to train and run a small AI model on a Raspberry Pi 5 to solve text-based CAPTCHAs?
I’m trying to understand whether it’s actually feasible to train and run a small AI model on a Raspberry Pi 5 (16 GB RAM) that can solve simple text-based CAPTCHAs, the kind that contain a few letters or numbers with mil... | https://stackoverflow.com/questions/79818158/is-it-possible-to-train-and-run-a-small-ai-model-on-a-raspberry-pi-5-to-solve-te | machine-learning, image-processing, raspberry-pi | 1,762,975,316 |
se_79876537 | stackoverflow | MACHINE_LEARNING | How to identify users' profiles based on the output uplift values | How to identify users' profiles based on the output uplift values
I am currently learning the Causal Forest algorithm in Python. In an exercise, I need to evaluate a marketing campaign where a certain group of users have already received coupons. Given that Y is the list of expense of each user, T is the list of b... | https://stackoverflow.com/questions/79876537/how-to-identify-users-profiles-based-on-the-output-uplift-values | python, machine-learning, scikit-learn | 1,769,448,106 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.