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_79893806
stackoverflow
MACHINE_LEARNING
Implemented PPO algorithm fails to train
Implemented PPO algorithm fails to train I wrote a PPO-based reinforcement learning code for the Gymnasium CarRacing-v3 environment. (The code was generated with the help of Gemini) However, even after 200,000 frames, the training does not seem to improve. Result: Frame: 40000 | Mean Reward: 0.07 | Loss: 3.1248 Frame:...
https://stackoverflow.com/questions/79893806/implemented-ppo-algorithm-fails-to-train
python, machine-learning, pytorch, reinforcement-learning, gymnasium
1,771,731,080
se_79894146
stackoverflow
MACHINE_LEARNING
Please explain this vectorized Bellman's Equation
Please explain this vectorized Bellman's Equation Can some please explain this vectorized Bellman equation to me in simple terms? The Bellman equation usually has "summation symbol", "summation symbol", "summation symbol", "summation symbol" ... and is initially hard to understand. But this vectorized version / de...
https://stackoverflow.com/questions/79894146/please-explain-this-vectorized-bellmans-equation
machine-learning, linear-algebra, reinforcement-learning, q-learning, temporal-difference
1,771,787,432
se_78310990
stackoverflow
MACHINE_LEARNING
LightGBM with Multi-Output Regression and Custom Loss Function
LightGBM with Multi-Output Regression and Custom Loss Function Can I use LightGBM with Multi-Output Regression and also a custom Loss Function? Problem is I have to use LightGBM. I know that i can use MultiOutputRegression by sklearn to wrap LightGBM but this doesnt allow me to define a custom loss function, as I coul...
https://stackoverflow.com/questions/78310990/lightgbm-with-multi-output-regression-and-custom-loss-function
python, machine-learning, regression, lightgbm
1,712,844,926
se_56152691
stackoverflow
MACHINE_LEARNING
Text classification method
Text classification method I'm trying to classify sentences on a given topic using machine learning. However, I can't seem to find the adequate algorithm / solution for this particular problem. Some details: I have tokenized, lemmatized and vectorized the sentences. So, given a sentence: How will the weather be today?...
https://stackoverflow.com/questions/56152691/text-classification-method
python, algorithm, machine-learning, text-classification, text-database
1,557,933,377
se_62991016
stackoverflow
MACHINE_LEARNING
Tensorflow keras model for solving simple equation
Tensorflow keras model for solving simple equation I'm trying to understand how to create a simple tensorflow 2.2 keras model that can predict a simple function value: f(a, b, c, d) = a < b : max(a/2, c/3) : max (b/2, d/3) I know this exact question can be reduced to a categorical classification but my intention is t...
https://stackoverflow.com/questions/62991016/tensorflow-keras-model-for-solving-simple-equation
tensorflow, machine-learning, keras, deep-learning, neural-network
1,595,231,943
se_56093535
stackoverflow
MACHINE_LEARNING
What is the use case of this TensorFlow class: image.flip_up_down?
What is the use case of this TensorFlow class: image.flip_up_down? What is the use case of this TensorFlow class: image.flip_up_down? Why the image has to flip up and down? Whats the reason behind this?
https://stackoverflow.com/questions/56093535/what-is-the-use-case-of-this-tensorflow-class-image-flip-up-down
tensorflow, machine-learning, image-processing, image-conversion
1,557,602,284
se_79891158
stackoverflow
MACHINE_LEARNING
How to solve a checksum error with tfds.load
How to solve a checksum error with tfds.load I'm trying to learn how to use Transformers with TensorFlow and I'm following this tutorial on the TensorFlow website: https://www.tensorflow.org/text/tutorials/transformer The problem I have is when I try the line: tfds.load('ted_hrlr_translate/pt_to_en',with_info=True,as_...
https://stackoverflow.com/questions/79891158/how-to-solve-a-checksum-error-with-tfds-load
tensorflow, machine-learning, nlp, checksum
1,771,359,789
se_79889546
stackoverflow
MACHINE_LEARNING
Enabling GPU use to expedite training via AutoGluon
Enabling GPU use to expedite training via AutoGluon I am training a series of ML models using AutoGluon's Mitra foundational model algorithms. When I set the fine_tune argument to True, the model keeps training with no end in sight. The model I am currently training has been training for almost a week. Conversely, whe...
https://stackoverflow.com/questions/79889546/enabling-gpu-use-to-expedite-training-via-autogluon
python, machine-learning, pycharm, automl, autogluon
1,771,124,669
se_53358838
stackoverflow
MACHINE_LEARNING
Predicting all zeros
Predicting all zeros I've depeloped a neural network for classification and I'm getting a 0.93 of accuracy, the problem is that I'm predicting all zeros because the distribution of the data. How can I fix it? Should I change from neural network to another algorithm? Thanks in advance Edit: i've just checked and m...
https://stackoverflow.com/questions/53358838/predicting-all-zeros
python, tensorflow, machine-learning, deep-learning
1,542,526,957
se_75593856
stackoverflow
MACHINE_LEARNING
Accounting for covariates (site effects) with mlr3 machine learning (pipelines)
Accounting for covariates (site effects) with mlr3 machine learning (pipelines) I have gone through the entire mlr3 book but am unable to find a solution for how to address site effects in my data, as it comes from a multicenter study. I theoretically know about leave-site-out CV, but as the amount of participants com...
https://stackoverflow.com/questions/75593856/accounting-for-covariates-site-effects-with-mlr3-machine-learning-pipelines
machine-learning, data-preprocessing, mlr3
1,677,597,074
se_10136470
stackoverflow
MACHINE_LEARNING
Unsupervised clustering with unknown number of clusters
Unsupervised clustering with unknown number of clusters I have a large set of vectors in 3 dimensions. I need to cluster these based on Euclidean distance such that all the vectors in any particular cluster have a Euclidean distance between each other less than a threshold "T". I do not know how many clusters exist. ...
https://stackoverflow.com/questions/10136470/unsupervised-clustering-with-unknown-number-of-clusters
algorithm, math, artificial-intelligence, machine-learning, cluster-analysis
1,334,300,042
se_79885777
stackoverflow
MACHINE_LEARNING
ODIR-5K: Should I train a Dual-Input CNN (Left/Right) or split images for Patient-Level Multi-Label Classification?
ODIR-5K: Should I train a Dual-Input CNN (Left/Right) or split images for Patient-Level Multi-Label Classification? I am working with the ODIR-5K (Ocular Disease Intelligent Recognition) dataset. The goal is multi-label classification of 8 ocular diseases (Normal, Diabetes, Glaucoma, Cataract, etc.). The Data Structur...
https://stackoverflow.com/questions/79885777/odir-5k-should-i-train-a-dual-input-cnn-left-right-or-split-images-for-patien
tensorflow, machine-learning, keras, computer-vision, conv-neural-network
1,770,632,924
se_49600319
stackoverflow
MACHINE_LEARNING
NLTK classifier for integer features?
NLTK classifier for integer features? I have integer-type features in my feature vector that NLTK’s NaiveBayesClassifier is treating as nominal values. Context I am trying to build a language classifier using n-grams. For instance, the bigram “th” is more common in English than in French. For each sentence in my train...
https://stackoverflow.com/questions/49600319/nltk-classifier-for-integer-features
python, machine-learning, nltk, text-classification, n-gram
1,522,601,046
se_79880593
stackoverflow
MACHINE_LEARNING
Decoder only character level transformer returns base64 text only. How do I clean my dataset while streaming?
Decoder only character level transformer returns base64 text only. How do I clean my dataset while streaming? I recently spent some time training a decoder only character level transformer. I had trained it with some README files that I found on the "stack" dataset. Epoch: 45/50 | Train Loss: 0.8878 | Val Loss: 0.943...
https://stackoverflow.com/questions/79880593/decoder-only-character-level-transformer-returns-base64-text-only-how-do-i-clea
machine-learning, deep-learning, nlp, dataset, data-cleaning
1,769,964,664
se_79872844
stackoverflow
MACHINE_LEARNING
Recommended backend and ML tools for expense prediction app
Recommended backend and ML tools for expense prediction app I am working on a project to build an AI-powered family budget mobile application. The app will track income and expenses, categorize transactions, analyze spending patterns, and predict future expenses. My current planned technology stack is as follows. Fron...
https://stackoverflow.com/questions/79872844/recommended-backend-and-ml-tools-for-expense-prediction-app
python, tensorflow, machine-learning, time-series, backend
1,768,997,632
se_79873178
stackoverflow
MACHINE_LEARNING
CUDA_ARCHITECTURES is set to &quot;native&quot;, but no NVIDIA GPU was detected
CUDA_ARCHITECTURES is set to &quot;native&quot;, but no NVIDIA GPU was detected I am trying to install llama-cpp-python with GPU support. I installed Nvidia CUDA Toolkit v13.1, nvidia-smi shows that my graphics card - Geforce GTX 1050 Ti - supports CUDA v13, nvcc is installed correctly. Before calling pip I set some e...
https://stackoverflow.com/questions/79873178/cuda-architectures-is-set-to-native-but-no-nvidia-gpu-was-detected
python, machine-learning, cuda, gpu, llama
1,769,027,063
se_62646058
stackoverflow
MACHINE_LEARNING
How does the predict method work on scikit-learn?
How does the predict method work on scikit-learn? How does the predict() method in scikit-learn work? Does it return random values or is there a calculation under the hood?
https://stackoverflow.com/questions/62646058/how-does-the-predict-method-work-on-scikit-learn
python, machine-learning, scikit-learn, supervised-learning
1,593,461,890
se_79880113
stackoverflow
MACHINE_LEARNING
Finding microns per pixel of tissue slide sample for ML
Finding microns per pixel of tissue slide sample for ML I'm building ensemble of convolutional neural networks for identifying different types of cancer stages and properties from tissue slide samples. I have multiple datasets with different magnification sizes (thus multiple CNN's), but even if multiple datasets have...
https://stackoverflow.com/questions/79880113/finding-microns-per-pixel-of-tissue-slide-sample-for-ml
machine-learning, conv-neural-network, medical-imaging
1,769,878,654
se_52695829
stackoverflow
MACHINE_LEARNING
Object detection using TFLearn or TensorFlow object detection API
Object detection using TFLearn or TensorFlow object detection API I want to build a object detection model and cannot figure out whether to go for TensorFlow object detection API or use TFLearn to build a model. What the pros and cons of both?
https://stackoverflow.com/questions/52695829/object-detection-using-tflearn-or-tensorflow-object-detection-api
tensorflow, machine-learning, deep-learning, object-detection, tflearn
1,538,976,200
se_79880183
stackoverflow
MACHINE_LEARNING
Speed up univariate logistic regression using IRLS on large number of subsampled samples
Speed up univariate logistic regression using IRLS on large number of subsampled samples I'm trying to perform logistic regression on samples randomly subsampled from a huge dataset for binary classification. I implemented logistic regression using iterative reweighted least squares (IRLS) and the Cython code was show...
https://stackoverflow.com/questions/79880183/speed-up-univariate-logistic-regression-using-irls-on-large-number-of-subsampled
python, machine-learning, optimization, logistic-regression
1,769,887,572
se_77161964
stackoverflow
MACHINE_LEARNING
How to ignore some classes during train, test, val in yolo v8 without modifying dataset?
How to ignore some classes during train, test, val in yolo v8 without modifying dataset? I have a dataset which has 12 class which is indexed form 0 to 11. I want to ignore last 4 classes during train, test, val in yolov8. How to do that?
https://stackoverflow.com/questions/77161964/how-to-ignore-some-classes-during-train-test-val-in-yolo-v8-without-modifying
machine-learning, yolo, yolov8
1,695,452,308
se_40066066
stackoverflow
MACHINE_LEARNING
Why is OpenCV3.1 NormalBayesClassifier&#39;s error rate so high in this example?
Why is OpenCV3.1 NormalBayesClassifier&#39;s error rate so high in this example? I'm trying to use OpenCV3.1's NormalBayesClassifier on a simple problem that I can easily generate training data for. I settled on classifying input numbers as even or odd. Obviously this can be computed directly with 100% accuracy, but t...
https://stackoverflow.com/questions/40066066/why-is-opencv3-1-normalbayesclassifiers-error-rate-so-high-in-this-example
c++, opencv, machine-learning, naivebayes
1,476,583,053
se_79877585
stackoverflow
MACHINE_LEARNING
Need advice on how to handle data and find groupings using ML/AI/DS
Need advice on how to handle data and find groupings using ML/AI/DS I have a project and I'm new with Data Science/ML/AI. Basically I have data set with list of issues and each issue there is a notes section where engineers talk to support and tell how do they solve or fix the issue. My challenge is I need to identify...
https://stackoverflow.com/questions/79877585/need-advice-on-how-to-handle-data-and-find-groupings-using-ml-ai-ds
machine-learning, artificial-intelligence, data-science, k-means
1,769,567,971
se_64801479
stackoverflow
MACHINE_LEARNING
How to combine two different trained ML models as one?
How to combine two different trained ML models as one? I have trained two ml models based on two different datasets. Then I saved them as model1.pkl and model2.pkl . There are two user inputs(not input data for model) like x=0 and x=1 and if x=0 I have to go with model1.pkl for prediction else I have to go with model2...
https://stackoverflow.com/questions/64801479/how-to-combine-two-different-trained-ml-models-as-one
python, pandas, machine-learning, conditional-statements, pickle
1,605,174,267
se_49883290
stackoverflow
MACHINE_LEARNING
What is the input to LSTM exactly?
What is the input to LSTM exactly? I have a more theoretical question i wasn't able to find an answer to. Lets say i have as Input a list of numbers: input = [0,5,0,4,3,3,2,1] And lets say as the first hidden layer consists of 3 LSTM nodes. How is now the list presented to the LSTM (with timesteps=8)? My first ide...
https://stackoverflow.com/questions/49883290/what-is-the-input-to-lstm-exactly
machine-learning, neural-network, deep-learning, lstm, recurrent-neural-network
1,523,982,942
se_79876321
stackoverflow
MACHINE_LEARNING
LightGBM regression on rank-transformed target: “No further splits with positive gain” and nearly-constant predictions
LightGBM regression on rank-transformed target: “No further splits with positive gain” and nearly-constant predictions I’m training a LightGBM model where the evaluation metric is Spearman correlation (rank-based). To better align training with the metric, I transform the continuous target y into ranks scaled to [0,1]...
https://stackoverflow.com/questions/79876321/lightgbm-regression-on-rank-transformed-target-no-further-splits-with-positive
python, machine-learning
1,769,430,590
se_79872469
stackoverflow
MACHINE_LEARNING
Self-Contained Alt Text Generation For Use In Other Software
Self-Contained Alt Text Generation For Use In Other Software I am currently working on a tool that takes in every webpage of a site, adds alt text to images missing it, and outputs the webpage as a PDF for archival purposes. For the generation of alt text, is there a pre-existing machine learning (if that's the right ...
https://stackoverflow.com/questions/79872469/self-contained-alt-text-generation-for-use-in-other-software
machine-learning, computer-vision
1,768,962,344
se_79857277
stackoverflow
MACHINE_LEARNING
Strategy for Outlier Removal in Skewed Supply Chain Data
Strategy for Outlier Removal in Skewed Supply Chain Data I am working on a research project involving Supply Chain Forecast Matching, and I am stuck on the best strategy for handling outliers. I am seeking advice from a feature engineering perspective. 1. The Goal: I am building a classification model (XGBoost) to pre...
https://stackoverflow.com/questions/79857277/strategy-for-outlier-removal-in-skewed-supply-chain-data
python, machine-learning, outliers, feature-engineering
1,767,074,941
se_79874746
stackoverflow
MACHINE_LEARNING
Good resources for learning GPU acceleration &amp; distributed LLM training?
Good resources for learning GPU acceleration &amp; distributed LLM training? I’m looking to upskill in GPU acceleration and distributed training, particularly for LLMs and fine-tuning workflows. I’m mainly interested in hands-on, practical resources (courses, certifications, or tutorials) that focus on Python/PyTorch—...
https://stackoverflow.com/questions/79874746/good-resources-for-learning-gpu-acceleration-distributed-llm-training
machine-learning, artificial-intelligence, gpu, large-language-model, fine-tuning
1,769,187,392
se_52861129
stackoverflow
MACHINE_LEARNING
How to calculate the joint log-likelihood for Bernoulli Naive Bayes
How to calculate the joint log-likelihood for Bernoulli Naive Bayes For a classification problem using BernoulliNB , how to calculate the joint log-likelihood? The joint likelihood is to be calculated by below formula, where y(d) is the array of actual output (not predicted values) and x(d) is the data set of features...
https://stackoverflow.com/questions/52861129/how-to-calculate-the-joint-log-likelihood-for-bernoulli-naive-bayes
machine-learning, scikit-learn, naivebayes, bernoulli-probability
1,539,799,730
se_79873328
stackoverflow
MACHINE_LEARNING
Is &quot;Small-to-Large&quot; model staging a reliable proxy for LoRA hyperparameter tuning and data validation?
Is &quot;Small-to-Large&quot; model staging a reliable proxy for LoRA hyperparameter tuning and data validation? I am designing a fine-tuning pipeline for a production-grade LLM and am operating under a strict R&D budget. To optimize costs, I am considering a Small-to-Large staging strategy. The Workflow: Stage 1 (Lo...
https://stackoverflow.com/questions/79873328/is-small-to-large-model-staging-a-reliable-proxy-for-lora-hyperparameter-tunin
machine-learning, nlp, huggingface-transformers, large-language-model, fine-tuning
1,769,042,862
se_79873091
stackoverflow
MACHINE_LEARNING
How to connect a trained model to android App?
How to connect a trained model to android App? I was able to successfully implement my own machine learning model in Python and include it in a web app. Now, I would like to port my machine learning model implemented in Python to a native Android app. And I refer many yotube videos I cant get corrrect thing can anyone...
https://stackoverflow.com/questions/79873091/how-to-connect-a-trained-model-to-android-app
python, android, machine-learning
1,769,016,610
se_79871467
stackoverflow
MACHINE_LEARNING
Machine Learning: Fisher-Irwing test with multilabels
Machine Learning: Fisher-Irwing test with multilabels I’m implementing the Fisher–Irwin (Fisher’s exact) test for enrichment analysis, and I’ve run into an issue with composite labels that may bias my contingency tables. Some proteins in my dataset are annotated with combined functional labels (e.g., “assemblyinfectio...
https://stackoverflow.com/questions/79871467/machine-learning-fisher-irwing-test-with-multilabels
machine-learning, statistics, protein-database
1,768,852,600
se_67347479
stackoverflow
MACHINE_LEARNING
DeepSpeech failed to learn Persian language
DeepSpeech failed to learn Persian language I’m training DeepSpeech from scratch (without checkpoint) with a language model generated using KenLM as stated in its doc. The dataset is a Common Voice dataset for Persian language. My configurations are as follows: Batch size = 2 (due to cuda OOM) Learning rate = 0.0001 ...
https://stackoverflow.com/questions/67347479/deepspeech-failed-to-learn-persian-language
tensorflow, machine-learning, speech-recognition, farsi, mozilla-deepspeech
1,619,880,327
se_79856726
stackoverflow
MACHINE_LEARNING
Why does this PyTorch model produce non-identical outputs on identical inputs even with fixed random seeds?
Why does this PyTorch model produce non-identical outputs on identical inputs even with fixed random seeds? I am running inference on a trained PyTorch model using the same input tensor, fixed random seeds, and evaluation mode enabled. import torch torch.manual_seed(42) torch.cuda.manual_seed_all(42) model.eval() Des...
https://stackoverflow.com/questions/79856726/why-does-this-pytorch-model-produce-non-identical-outputs-on-identical-inputs-ev
machine-learning, pytorch, neural-network, floating-point
1,767,005,814
se_75635528
stackoverflow
MACHINE_LEARNING
Optuna sample fixed parameter depending on another parameter
Optuna sample fixed parameter depending on another parameter As an example lets assume I have a setting like the following of value = base ** power with base = trial.suggest_int(1, 3) power = trial.suggest_int(1, 10) As when the base == 1 the power parameter becomes irrelevant and I would like to fix it to 1. For exa...
https://stackoverflow.com/questions/75635528/optuna-sample-fixed-parameter-depending-on-another-parameter
python, machine-learning, sampling, hyperparameters, optuna
1,677,931,279
se_79559242
stackoverflow
MACHINE_LEARNING
tflite-runtime ValueError: Didn&#39;t find op for builtin opcode &#39;FULLY_CONNECTED&#39; version &#39;12&#39;. An older version of this builtin might be supported
tflite-runtime ValueError: Didn&#39;t find op for builtin opcode &#39;FULLY_CONNECTED&#39; version &#39;12&#39;. An older version of this builtin might be supported I have trained and quantised my models on tensorflow==2.19.0 instead of a previous version and now am facing troubles in using the quantised models for in...
https://stackoverflow.com/questions/79559242/tflite-runtime-valueerror-didnt-find-op-for-builtin-opcode-fully-connected-v
tensorflow, machine-learning, raspberry-pi, image-classification, tflite
1,744,008,944
se_42279814
stackoverflow
MACHINE_LEARNING
Best machine learning approach to automate text/fuzzy matching
Best machine learning approach to automate text/fuzzy matching I'm reasonably new to machine learning, I've done a few projects in python. I'm looking for advice on how to approach the below problem which I believe could be automated. A user in a data quality team in my organisation has a daily task of taking a list ...
https://stackoverflow.com/questions/42279814/best-machine-learning-approach-to-automate-text-fuzzy-matching
machine-learning, text-classification, fuzzy-comparison, record-linkage
1,487,263,204
se_11320344
stackoverflow
MACHINE_LEARNING
Which approach fits best to predict discrete &amp; continuous solutions from features of variable importance?
Which approach fits best to predict discrete &amp; continuous solutions from features of variable importance? I need to come up with a formula that takes up to N inputs and calculates a single number that should predict the "correct" answer as often as possible. Each input is a decimal value or integer. The output is ...
https://stackoverflow.com/questions/11320344/which-approach-fits-best-to-predict-discrete-continuous-solutions-from-feature
machine-learning, feature-selection
1,341,356,195
se_3047940
stackoverflow
MACHINE_LEARNING
Feature Selection methods in MATLAB?
Feature Selection methods in MATLAB? I am trying to do some text classification with SVMs in MATLAB and would like to know if MATLAB has any methods for feature selection (Chi Sq.,MI,....). Since I want to try various methods and keep the best method, I don't have time to implement all of them. That's why I am looking...
https://stackoverflow.com/questions/3047940/feature-selection-methods-in-matlab
matlab, machine-learning, classification
1,276,626,317
se_26664851
stackoverflow
MACHINE_LEARNING
Feature selection and training data
Feature selection and training data I have built a classifier and would like to improve its accuracy beyond its current 73% I started to incorporate feature selection using Chi Square but how do I get the features selected back into the training data to build the classifier? If I were to do a comparison for each train...
https://stackoverflow.com/questions/26664851/feature-selection-and-training-data
machine-learning, training-data, feature-selection
1,414,709,987
se_17655517
stackoverflow
MACHINE_LEARNING
Supervised Learning
Supervised Learning The question is about combining output probabilities from detectors. Each of my detector d_i gives me a probability p_i of object presence in the scene. I have a labelled data set and I would like to learn the weighted combination of the detectors to get a (more accurate) global detector. What algo...
https://stackoverflow.com/questions/17655517/supervised-learning
machine-learning, probability, supervised-learning
1,373,895,192
se_44821978
stackoverflow
MACHINE_LEARNING
How to build target variable for supervised machine learning project?
How to build target variable for supervised machine learning project? I have a project related to insurance. So I have databases about clients that I will merge to get all possible information about the clients and I have one database for the claims. I need to build a model to identify how risky the client based on ra...
https://stackoverflow.com/questions/44821978/how-to-build-target-variable-for-supervised-machine-learning-project
machine-learning, supervised-learning
1,498,730,353
se_79864351
stackoverflow
MACHINE_LEARNING
Which is more suitable in production environment, python zip vs enumerate?
Which is more suitable in production environment, python zip vs enumerate? # version1 a = ["child", "car", "grave", "happy", "suprise"] for index, value in zip(range(len(a)), a): print("have more control") # version2 for index, value in enumerate(a): print("have more life") what should be more appropriate in produ...
https://stackoverflow.com/questions/79864351/which-is-more-suitable-in-production-environment-python-zip-vs-enumerate
python, machine-learning
1,767,966,546
se_75633662
stackoverflow
MACHINE_LEARNING
How do you load a specific GPU from CUDA_AVAILABLE_DEVICES in PyTorch?
How do you load a specific GPU from CUDA_AVAILABLE_DEVICES in PyTorch? I came up with this code but it's resulting in never ending bugs: def get_device_via_env_variables(deterministic: bool = False, verbose: bool = True) -> torch.device: device: torch.device = torch.device("cpu") if torch.cuda.is_available(): ...
https://stackoverflow.com/questions/75633662/how-do-you-load-a-specific-gpu-from-cuda-available-devices-in-pytorch
python, machine-learning, deep-learning, pytorch
1,677,904,437
se_79863744
stackoverflow
MACHINE_LEARNING
Difference between torch.nn.Module and torch.Tensor?
Difference between torch.nn.Module and torch.Tensor? I’m learning PyTorch and I see two common classes: torch.Tensor and torch.nn.Module. I’m a bit confused about their differences and when to use each. Here’s what I understand so far: torch.Tensor represents data, usually a multi-dimensional array, and supports oper...
https://stackoverflow.com/questions/79863744/difference-between-torch-nn-module-and-torch-tensor
python, machine-learning, pytorch
1,767,905,698
se_56842648
stackoverflow
MACHINE_LEARNING
Is there a way to export a series of scenes rendered in Panda3D as individual image files?
Is there a way to export a series of scenes rendered in Panda3D as individual image files? I am attempting to use a Python script to artificially generate a training set for an image recognition neural net by rendering a 3D model in a variety of scenes using Panda3D. I have written the code to successfully render the...
https://stackoverflow.com/questions/56842648/is-there-a-way-to-export-a-series-of-scenes-rendered-in-panda3d-as-individual-im
python, machine-learning, graphics, 3d, panda3d
1,562,016,221
se_79863277
stackoverflow
MACHINE_LEARNING
Python ValueError while training Logistic Regression model
Python ValueError while training Logistic Regression model I am trying to train a Logistic Regression model using scikit-learn in Python. When I try to fit the model, I get the following error: ValueError: could not convert string to float Here is the code I am using: from sklearn.linear_model import LogisticRegressio...
https://stackoverflow.com/questions/79863277/python-valueerror-while-training-logistic-regression-model
machine-learning, scikit-learn, logistic-regression
1,767,872,900
se_77411155
stackoverflow
MACHINE_LEARNING
Lambda function AttributeError: module &#39;os&#39; has no attribute &#39;add_dll_directory&#39;
Lambda function AttributeError: module &#39;os&#39; has no attribute &#39;add_dll_directory&#39; I am encountering an issue with my AWS Lambda function with runtime Python 3.9. The function uses Spacy (version 3.7.2) and is set up as a layer in AWS Lambda. During execution, I'm facing the following error. { "errorMe...
https://stackoverflow.com/questions/77411155/lambda-function-attributeerror-module-os-has-no-attribute-add-dll-directory
python-3.x, machine-learning, aws-lambda, spacy-3
1,698,940,937
se_68265016
stackoverflow
MACHINE_LEARNING
How to get MAP score of the Yolov4 Model?
How to get MAP score of the Yolov4 Model? I have a set of Images and Yolo Annotation files(in txt format) for the validation. How to properly use -map argument (something like below) to get the mAP score of the validation dataset using the darknet framework (Repo:https://github.com/AlexeyAB/darknet)? /darknet detector...
https://stackoverflow.com/questions/68265016/how-to-get-map-score-of-the-yolov4-model
machine-learning, darknet, yolov4
1,625,549,319
se_76755300
stackoverflow
MACHINE_LEARNING
NLembedding for iOS returning nil
NLembedding for iOS returning nil I'm currently implementing on-device vector search using Apple's Natural Language Library. However, I'm facing an issue where the iOS SentenceEmbedding function is returning nil. It was working fine on macOS and iOS until recently. I've attached the terminal output and the code line w...
https://stackoverflow.com/questions/76755300/nlembedding-for-ios-returning-nil
ios, swift, machine-learning, nlp
1,690,207,753
se_78407025
stackoverflow
MACHINE_LEARNING
Trying to cluster short survey answers (1 to 10 words). Am I on the right track?
Trying to cluster short survey answers (1 to 10 words). Am I on the right track? Here's the explanation of what I want to fully make (it's a project for school): A user just puts in a file with just the answers to whatever question was asked in the survey The machine finds similar answers and groups them under one l...
https://stackoverflow.com/questions/78407025/trying-to-cluster-short-survey-answers-1-to-10-words-am-i-on-the-right-track
machine-learning, text, nlp, cluster-analysis
1,714,463,457
se_79861683
stackoverflow
MACHINE_LEARNING
Semi-Supervised Learning - Confusion Matrix - R
Semi-Supervised Learning - Confusion Matrix - R I am currently trying the semi-supervised classification (SSC) library in R using code from the vignette. The vignette removes some observations from the Wine dataset such that it's partially labelled and then predicts the label. However, if I wondered if anyone could he...
https://stackoverflow.com/questions/79861683/semi-supervised-learning-confusion-matrix-r
r, machine-learning, classification, prediction
1,767,707,237
se_78185218
stackoverflow
MACHINE_LEARNING
How can I solve the &quot;unhashable type&quot; error when importing TensorFlow in Python?
How can I solve the &quot;unhashable type&quot; error when importing TensorFlow in Python? I have a Problem with importing TensorFlow in Virtual Studio Code. I tried to execute my code which starts with importing different modules. One of this lines is importing Tensorflow: import tensorflow as tf Which gives me the E...
https://stackoverflow.com/questions/78185218/how-can-i-solve-the-unhashable-type-error-when-importing-tensorflow-in-python
python-3.x, machine-learning, error-handling, tensorflow2.0
1,710,837,861
se_79861943
stackoverflow
MACHINE_LEARNING
Crafting a roadmap to learn AI, (perhaps using Rust?)
Crafting a roadmap to learn AI, (perhaps using Rust?) I would like some advice to get into AI (I have been resisting the trend, but today seems to be a base requirement to work anywhere...) My Setup and current state Fedora Threadripper 3960x Intel Arc B50 (I got it just for this purpose) I am comfortable with C and...
https://stackoverflow.com/questions/79861943/crafting-a-roadmap-to-learn-ai-perhaps-using-rust
machine-learning, rust, artificial-intelligence
1,767,732,305
se_57847495
stackoverflow
MACHINE_LEARNING
How to fix function with for loop not iterating. Recommendation system in Python
How to fix function with for loop not iterating. Recommendation system in Python I'm working on a recommendation system with the python library Surprise. I'm trying to make a function that iterates over the full list of movies and predicts their ranking value against a user id which is defined in when I call the funct...
https://stackoverflow.com/questions/57847495/how-to-fix-function-with-for-loop-not-iterating-recommendation-system-in-python
python, pandas, machine-learning, data-science, recommendation-engine
1,567,999,344
se_79861393
stackoverflow
MACHINE_LEARNING
What is the most reliable face liveness detection model and dataset for real-world mobile apps?
What is the most reliable face liveness detection model and dataset for real-world mobile apps? I’m working on face liveness (anti-spoofing) detection intended for real-world mobile apps (Flutter), and I’m struggling to achieve reliable performance outside controlled datasets. What I’m trying to achieve A production-...
https://stackoverflow.com/questions/79861393/what-is-the-most-reliable-face-liveness-detection-model-and-dataset-for-real-wor
python, android, tensorflow, machine-learning, computer-vision
1,767,683,894
se_79859374
stackoverflow
MACHINE_LEARNING
Text embedding generation with LLMs for a specific usecase
Text embedding generation with LLMs for a specific usecase I'm dealing with titles for media files, and the task is to separate duplicates. To do this, the plan is to generate embeddings for those titles. I've tried several models for this, and most of them work in a similar way. You give them a sentence, and they gen...
https://stackoverflow.com/questions/79859374/text-embedding-generation-with-llms-for-a-specific-usecase
machine-learning, nlp
1,767,379,664
se_79808273
stackoverflow
MACHINE_LEARNING
Machine learning to manage Excel files
Machine learning to manage Excel files I would like to train a model to understand if an Excel file has the expected structure. I can put a list of right files in a folder and a list of wrong ones in another. Any help and suggestion are appreciated. Best scenario could be having an open source tool able to read the tr...
https://stackoverflow.com/questions/79808273/machine-learning-to-manage-excel-files
excel, validation, machine-learning, tooling-recommendation
1,762,200,780
se_79853945
stackoverflow
MACHINE_LEARNING
ASP.NET With AI
ASP.NET With AI I’m working with ASP.NET and I would like to integrate an AI model into my backend API. Could you please explain the available approaches, the required tools or services, and the best practices for doing this effectively?
https://stackoverflow.com/questions/79853945/asp-net-with-ai
asp.net, database, machine-learning, artificial-intelligence, backend
1,766,519,328
se_79449168
stackoverflow
MACHINE_LEARNING
MiniBatchKMeans BERTopic not returning topics for half of data
MiniBatchKMeans BERTopic not returning topics for half of data I am trying to topic a dataset of tweets. I have around 50 million tweets. Unfortunately, such a large dataset will not fit in ram (even 128GB) due to the embeddings. Therefore, I have been working on making an incremental BERTopic as per the docs As such:...
https://stackoverflow.com/questions/79449168/minibatchkmeans-bertopic-not-returning-topics-for-half-of-data
python, machine-learning, nlp, data-science, topic-modeling
1,739,900,579
se_79857912
stackoverflow
MACHINE_LEARNING
Is my noise function differentially private? Is flattening then reshaping correct? Or it breaks the image?
Is my noise function differentially private? Is flattening then reshaping correct? Or it breaks the image? The main function is apply_noise which applies the noise using the laplacian distribution, the scale of the distribution is b which is calculated with an epsilon value and the sensitivity value that comes from th...
https://stackoverflow.com/questions/79857912/is-my-noise-function-differentially-private-is-flattening-then-reshaping-correc
python, numpy, machine-learning, neural-network, noise
1,767,145,857
se_79856693
stackoverflow
MACHINE_LEARNING
Is this data suitable for ML model if so which one would be best for this type of data?
Is this data suitable for ML model if so which one would be best for this type of data? I have this data Name,X1,Y1,X2,Y2,X3,Y3,X4,Y4,,centroid_x,centroid_y,,area R1-A,79,55,70,87,154,78,159,48,,115.5,67,,2486 R1-B,1108,23,1126,51,1197,44,1174,14,,1151.25,33,,2150.5 R1-C,2134,53,2183,83,2244,75,2194,45,,2188.75,64,...
https://stackoverflow.com/questions/79856693/is-this-data-suitable-for-ml-model-if-so-which-one-would-be-best-for-this-type-o
python, machine-learning, computer-vision
1,767,003,142
se_79852347
stackoverflow
MACHINE_LEARNING
How can AUC be correctly used with a softmax output, sparse integer labels and categorical_crossentropy for binary classification in Keras?
How can AUC be correctly used with a softmax output, sparse integer labels and categorical_crossentropy for binary classification in Keras? I am working on a binary image classification task using TensorFlow/Keras (TensorFlow version: 2.19.0). My model architecture is a multimodal setup with two input branches (CT and...
https://stackoverflow.com/questions/79852347/how-can-auc-be-correctly-used-with-a-softmax-output-sparse-integer-labels-and-c
python, tensorflow, machine-learning, keras, transfer-learning
1,766,334,938
se_79846492
stackoverflow
MACHINE_LEARNING
Pretrained resnet 18 model doesn&#39;t have fc layer and has cls and pool layers instead? &quot;Missing key (s) in state_dict: &quot;fc.weight&quot;, &quot;fc.bias&quot;.&quot;
Pretrained resnet 18 model doesn&#39;t have fc layer and has cls and pool layers instead? &quot;Missing key (s) in state_dict: &quot;fc.weight&quot;, &quot;fc.bias&quot;.&quot; I am trying to implement this repo in a simple way in my own project. I learned what each layer should do. I thought getting a pretrained AI a...
https://stackoverflow.com/questions/79846492/pretrained-resnet-18-model-doesnt-have-fc-layer-and-has-cls-and-pool-layers-ins
machine-learning, pytorch, artificial-intelligence, resnet, pre-trained-model
1,765,623,229
se_79855418
stackoverflow
MACHINE_LEARNING
I am confused, when to use tensorflow and pytorch
I am confused, when to use tensorflow and pytorch I am always confused between tensorflow and pytorch when to use which, because both are used for same task but when to use tensorflow and pytorch, like situation oriented. Some people's said suggested me if doing any research or something use pytorch, it is best for th...
https://stackoverflow.com/questions/79855418/i-am-confused-when-to-use-tensorflow-and-pytorch
machine-learning, deep-learning, computer-vision, artificial-intelligence, software-distribution
1,766,767,960
se_79844667
stackoverflow
MACHINE_LEARNING
Looking for a working TensorFlow Lite (.tflite) NSFW detection model for Android
Looking for a working TensorFlow Lite (.tflite) NSFW detection model for Android I specifically need: -A real .tflite file (not .onnx, not .pb, not .pth, not .mlmodel) -Image classifier model (NOT segmenter or detector) -Preferably with 5 classes or at least 2: drawings, hentai, neutral, porn, sexy -A matching labels....
https://stackoverflow.com/questions/79844667/looking-for-a-working-tensorflow-lite-tflite-nsfw-detection-model-for-android
android, machine-learning, tensorflow-lite, image-classification
1,765,526,566
se_78466923
stackoverflow
MACHINE_LEARNING
AttributeError: &#39;QuantumCircuit&#39; object has no attribute &#39;cnot&#39; Receiving this error when using the qiskit.QuantumCircuit.cnot
AttributeError: &#39;QuantumCircuit&#39; object has no attribute &#39;cnot&#39; Receiving this error when using the qiskit.QuantumCircuit.cnot def ans(n, depth): qc = QuantumCircuit(n) for j in range(depth): for i in range(n): param_name = f'theta_{j}_{i}' theta_param = Paramete...
https://stackoverflow.com/questions/78466923/attributeerror-quantumcircuit-object-has-no-attribute-cnot-receiving-this-e
machine-learning, qiskit
1,715,496,753
se_41455101
stackoverflow
MACHINE_LEARNING
What is the meaning of the word logits in TensorFlow?
What is the meaning of the word logits in TensorFlow? In the following TensorFlow function, we must feed the activation of artificial neurons in the final layer. That I understand. But I don't understand why it is called logits? Isn't that a mathematical function? loss_function = tf.nn.softmax_cross_entropy_with_log...
https://stackoverflow.com/questions/41455101/what-is-the-meaning-of-the-word-logits-in-tensorflow
tensorflow, machine-learning, neural-network, deep-learning, cross-entropy
1,483,495,351
se_47106385
stackoverflow
MACHINE_LEARNING
Determine WHY Features Are Important in Decision Tree Models
Determine WHY Features Are Important in Decision Tree Models Often-times stakeholders don't want a black-box model that's good at predicting; they want insights about features to have a better understanding about their business, and so they can explain it to others. When we inspect the feature importance of an xgboost...
https://stackoverflow.com/questions/47106385/determine-why-features-are-important-in-decision-tree-models
python, machine-learning, scikit-learn, decision-tree, xgboost
1,509,758,016
se_79836759
stackoverflow
MACHINE_LEARNING
How can I use multiple optional parameters?
How can I use multiple optional parameters? I have a function that will create multiple ML models compare them and return an ensemble of the top n model results. I want the user to have the option to pass in parameters for each model individually but otherwise enter default parameters. I want to make it so the enterin...
https://stackoverflow.com/questions/79836759/how-can-i-use-multiple-optional-parameters
python, machine-learning, parameter-passing
1,764,756,602
se_79846603
stackoverflow
MACHINE_LEARNING
Which ML model is best fit for the noisy data and why?
Which ML model is best fit for the noisy data and why? I am working with a dataset that contains a significant amount of noise and outliers due to measurement errors and real-world variability. The data includes numerical features and is used for a supervised learning task (classification/regression). I want to unders...
https://stackoverflow.com/questions/79846603/which-ml-model-is-best-fit-for-the-noisy-data-and-why
machine-learning
1,765,640,011
se_44668298
stackoverflow
MACHINE_LEARNING
xgboost vs H2o Gradient Boosting
xgboost vs H2o Gradient Boosting I have a dataset having a large missing values (more than 40% missing). Genrated a model in xgboost and H2o gradient boosting - got a decent model in both cases. However, the xgboost shows this variable as one of the key contributors to the model but as per H2o Gradient Boosting the va...
https://stackoverflow.com/questions/44668298/xgboost-vs-h2o-gradient-boosting
machine-learning, xgboost, h2o
1,498,026,378
se_48029542
stackoverflow
MACHINE_LEARNING
Data augmentation in test/validation set?
Data augmentation in test/validation set? It is common practice to augment data (add samples programmatically, such as random crops, etc. in the case of a dataset consisting of images) on both training and test set, or just the training data set?
https://stackoverflow.com/questions/48029542/data-augmentation-in-test-validation-set
machine-learning, deep-learning
1,514,590,316
se_79843424
stackoverflow
MACHINE_LEARNING
How do I create APIs for training ML models to play games? (Reference request)
How do I create APIs for training ML models to play games? (Reference request) I'm interested in learning how to train machine learning models to play video games. I would love to see general references (books and papers) on how to do this; I see lots of papers on the model training itself, but not on how to get the m...
https://stackoverflow.com/questions/79843424/how-do-i-create-apis-for-training-ml-models-to-play-games-reference-request
machine-learning, interface, artificial-intelligence, game-engine
1,765,399,335
se_57348495
stackoverflow
MACHINE_LEARNING
What is the good RMSE (root-mean-square-error) value range to justify the efficiency of multivariate linear regression model?
What is the good RMSE (root-mean-square-error) value range to justify the efficiency of multivariate linear regression model? I'm a new bee in ML domain. Following some simple ML techniques, I build a multivariate linear regression-based ML model for predicting the computation resource usage for a system. So, when I p...
https://stackoverflow.com/questions/57348495/what-is-the-good-rmse-root-mean-square-error-value-range-to-justify-the-effici
machine-learning, linear-regression
1,564,937,462
se_63610711
stackoverflow
MACHINE_LEARNING
how to use yolov3 with opencv.js in browser
how to use yolov3 with opencv.js in browser I'm new to opencv.js and have a trouble with is as below: let utils = new Utils('errorMessage'); let cfg = 'yolo_file/test.cfg'; let weights = 'yolo_file/test.weights'; utils.createFileFromUrl('cfg', cfg, () => { utils.createFileFromUrl('weights', weights, ...
https://stackoverflow.com/questions/63610711/how-to-use-yolov3-with-opencv-js-in-browser
javascript, opencv, machine-learning, neural-network, yolo
1,598,511,513
se_46928328
stackoverflow
MACHINE_LEARNING
Why training loss is increased at the beginning of each epoch?
Why training loss is increased at the beginning of each epoch? I'm training a linear regression model. I use tf.contrib.data to prepare the dataset, shuffle it and serve it in batches: dataset = tf.contrib.data.TFRecordDataset(filename) dataset = dataset.map( _parse_function, num_threads=16, output_buffer_s...
https://stackoverflow.com/questions/46928328/why-training-loss-is-increased-at-the-beginning-of-each-epoch
machine-learning, tensorflow, tensorflow-datasets
1,508,922,506
se_79840689
stackoverflow
MACHINE_LEARNING
instance segmentation on custom coco dataset using pytorch maskrcnn + fpn for 83 categories (+background)
instance segmentation on custom coco dataset using pytorch maskrcnn + fpn for 83 categories (+background) I am running a training of instance segmentation on custom coco dataset using pytorch maskrcnn + fpn for 83 categories (+background). What is the problem with following setup and why RPN head not learning at all? ...
https://stackoverflow.com/questions/79840689/instance-segmentation-on-custom-coco-dataset-using-pytorch-maskrcnn-fpn-for-83
machine-learning, pytorch, computer-vision, mask-rcnn, instance-segmentation
1,765,179,045
se_59907344
stackoverflow
MACHINE_LEARNING
How to get the confidence of a prediction from a MLModel (Machine Learning Model) in Swift 5
How to get the confidence of a prediction from a MLModel (Machine Learning Model) in Swift 5 even though my code is pretty simplistic in what it is trying to do, basically I want to have the classifier model return an accuracy/confidence value for how accurate it thinks it's prediction is, on actual Xcode application ...
https://stackoverflow.com/questions/59907344/how-to-get-the-confidence-of-a-prediction-from-a-mlmodel-machine-learning-model
swift, xcode, machine-learning, coreml
1,579,938,731
se_79834752
stackoverflow
MACHINE_LEARNING
Repetitive generation on instruction tuning for raw language model
Repetitive generation on instruction tuning for raw language model I have used the following code to do sft: base_model = "google/gemma-3-270m" it_model = "google/gemma-3-270m-it" checkpoint_dir = "checkpoint" learning_rate = 5e-5 #@param {type:"number"} from datasets import Dataset from transformers import pipeline f...
https://stackoverflow.com/questions/79834752/repetitive-generation-on-instruction-tuning-for-raw-language-model
machine-learning, deep-learning, huggingface-transformers, large-language-model, fine-tuning
1,764,588,837
se_79836536
stackoverflow
MACHINE_LEARNING
What is the best text embedding model for ecommerce product search (short, noisy user queries)?
What is the best text embedding model for ecommerce product search (short, noisy user queries)? I am integrating a vector-based semantic search system into a large ecommerce platform's product search, and I want to select the right text embedding model. Use Case User queries are often: Very short (1–4 words) Ungramma...
https://stackoverflow.com/questions/79836536/what-is-the-best-text-embedding-model-for-ecommerce-product-search-short-noisy
machine-learning, information-retrieval, huggingface, vector-search, semantic-search
1,764,737,419
se_62379250
stackoverflow
MACHINE_LEARNING
Does an accuracy of 97.55 % indicate an overfitted model?
Does an accuracy of 97.55 % indicate an overfitted model? I have implemented a logistic regression model in predicting high-risk claims. My model is giving an accuracy of 97%. Does that indicate that my model is overfitted?
https://stackoverflow.com/questions/62379250/does-an-accuracy-of-97-55-indicate-an-overfitted-model
machine-learning, logistic-regression, evaluation
1,592,176,367
se_79833925
stackoverflow
MACHINE_LEARNING
How to break circular dependency in Python class when trying to separate a simple wrapper class from a heavier implementation?
How to break circular dependency in Python class when trying to separate a simple wrapper class from a heavier implementation? I am trying to build a small scale deep learning framework. I defined my tensor class as follows class Tensor: __slots__ = ( "_backend", "_data", "_requires_grad",...
https://stackoverflow.com/questions/79833925/how-to-break-circular-dependency-in-python-class-when-trying-to-separate-a-simpl
python, class, oop, machine-learning
1,764,509,397
se_79834164
stackoverflow
MACHINE_LEARNING
How to train Azure Document Intelligence to extract dynamic clinical Schedule-of-Assessments tables from protocol PDFs?
How to train Azure Document Intelligence to extract dynamic clinical Schedule-of-Assessments tables from protocol PDFs? I’m using Azure AI Document Intelligence to train a Custom Extraction model that can extract Schedule-of-Assessments (SoA) tables from clinical trial protocol PDFs. These tables are challenging becau...
https://stackoverflow.com/questions/79834164/how-to-train-azure-document-intelligence-to-extract-dynamic-clinical-schedule-of
azure, machine-learning, ocr, azure-form-recognizer, azure-document-intelligence
1,764,534,444
se_24046396
stackoverflow
MACHINE_LEARNING
Hyper-parameters of Gaussian Processes for Regression
Hyper-parameters of Gaussian Processes for Regression I know a Gaussian Process Regression model is mainly specified by its covariance matrix and the free hyper-parameters act as the 'weights'of the model. But could anyone explain what do the 2 hyper-parameters (length-scale & amplitude) in the covariance matrix repre...
https://stackoverflow.com/questions/24046396/hyper-parameters-of-gaussian-processes-for-regression
matlab, machine-learning, statistics, hyperparameters
1,401,911,675
se_79832858
stackoverflow
MACHINE_LEARNING
ONNX Script rewriter: how to match patterns with multiple outputs?
ONNX Script rewriter: how to match patterns with multiple outputs? I am trying to implement this rewrite rule from the TASO paper with ONNX Script rewriter. However, I cannot figure out how to implement a pattern with multiple outputs X and Y. The ONNX Script does partially account for this (https://microsoft.github....
https://stackoverflow.com/questions/79832858/onnx-script-rewriter-how-to-match-patterns-with-multiple-outputs
machine-learning, compiler-optimization, tensor, onnx
1,764,357,576
se_62409303
stackoverflow
MACHINE_LEARNING
How to handle missing values (NaN) in categorical data when using scikit-learn OneHotEncoder?
How to handle missing values (NaN) in categorical data when using scikit-learn OneHotEncoder? I have recently started learning python to develop a predictive model for a research project using machine learning methods. I have a large dataset comprised of both numerical and categorical data. The dataset has lots of mis...
https://stackoverflow.com/questions/62409303/how-to-handle-missing-values-nan-in-categorical-data-when-using-scikit-learn-o
python, machine-learning, scikit-learn
1,592,312,956
se_66284850
stackoverflow
MACHINE_LEARNING
Pytorch transforms.Compose usage for pair of images in segmentation tasks
Pytorch transforms.Compose usage for pair of images in segmentation tasks I'm trying to use the transforms.Compose() in my segmentation task. But I'm not sure how to use the same (almost) random transforms for both the image and the mask. So in my segmentation task, I have the raw picture and the corresponding mask, I...
https://stackoverflow.com/questions/66284850/pytorch-transforms-compose-usage-for-pair-of-images-in-segmentation-tasks
python, image, machine-learning, pytorch
1,613,767,950
se_79830513
stackoverflow
MACHINE_LEARNING
How to categorize small/local company names into sectors (Tech, Industry, etc.) when they cannot be found online?
How to categorize small/local company names into sectors (Tech, Industry, etc.) when they cannot be found online? I have a large dataset containing small-scale / local company names, and I need to categorize each company into sectors such as Tech, Industrial, Finance, Retail, etc. The problem is: These companies are t...
https://stackoverflow.com/questions/79830513/how-to-categorize-small-local-company-names-into-sectors-tech-industry-etc
python, machine-learning, classification
1,764,148,943
se_79828541
stackoverflow
MACHINE_LEARNING
EfficientNet-B7 Shape mismatch
EfficientNet-B7 Shape mismatch working on project of image classification using efficientnet-B7 what is wrong in this code? why is the error showing when i run this line of code? the error state Shape mismatch in layer #1 (named stem_conv)for weight stem_conv/kernel. Weight expects shape (3, 3, 1, 64). Received saved...
https://stackoverflow.com/questions/79828541/efficientnet-b7-shape-mismatch
tensorflow, machine-learning
1,763,981,726
se_79829106
stackoverflow
MACHINE_LEARNING
SSLCertVerificationError when fetching OpenML datasets in conda environment on Ubuntu
SSLCertVerificationError when fetching OpenML datasets in conda environment on Ubuntu I’m on Ubuntu using a conda environment (ML(Python 3.12.9)), and I get a SSL certificate verification error when trying to load a dataset from OpenML with sklearn.datasets.fetch_openml. I already installed certifi inside the environm...
https://stackoverflow.com/questions/79829106/sslcertverificationerror-when-fetching-openml-datasets-in-conda-environment-on-u
python, machine-learning, ssl, openml
1,764,018,733
se_79325929
stackoverflow
MACHINE_LEARNING
TFLite from Google Auto ML Edge Object Detection crash when Invoke
TFLite from Google Auto ML Edge Object Detection crash when Invoke I've been trying to use Model TFLite obtained from Google Auto ML Object Detection for Edge. My script look like this: import pandas as pd import tensorflow as tf import numpy as np model_path = "model.tflite" import tensorflow as tf interpreter = ...
https://stackoverflow.com/questions/79325929/tflite-from-google-auto-ml-edge-object-detection-crash-when-invoke
python, tensorflow, machine-learning, google-cloud-platform, tflite
1,735,894,119
se_68242454
stackoverflow
MACHINE_LEARNING
Can Yolo-V3 trained model be converted to TensorFlow model?
Can Yolo-V3 trained model be converted to TensorFlow model? I have trained my model of doors in yolo-v3 but now I need it in TensorFlow-Lite. But, I am facing a problem, that is, if I want to train my model for tensorflow, I need annotation file in ".csv" or ".xml" but the ones I have are "*.txt". I did found a softwa...
https://stackoverflow.com/questions/68242454/can-yolo-v3-trained-model-be-converted-to-tensorflow-model
python, tensorflow, machine-learning, computer-vision, yolo
1,625,382,251
se_68558286
stackoverflow
MACHINE_LEARNING
How to install Nvidia Apex
How to install Nvidia Apex I am trying to install apex on colab by Nvidia but failed several times. I tried number of different solutions including ones provided by Github official repository. I also tried answers provided here. Every time I try I encounter error like this` torch.__version__ = 1.9.0+cu102 /tmp/pip-...
https://stackoverflow.com/questions/68558286/how-to-install-nvidia-apex
python, machine-learning, google-colaboratory, nvidia
1,627,466,468
se_10565868
stackoverflow
MACHINE_LEARNING
multi-layer perceptron (MLP) architecture: criteria for choosing number of hidden layers and size of the hidden layer?
multi-layer perceptron (MLP) architecture: criteria for choosing number of hidden layers and size of the hidden layer? If we have 10 eigenvectors then we can have 10 neural nodes in input layer.If we have 5 output classes then we can have 5 nodes in output layer.But what is the criteria for choosing number of hidden l...
https://stackoverflow.com/questions/10565868/multi-layer-perceptron-mlp-architecture-criteria-for-choosing-number-of-hidde
machine-learning, neural-network, deep-learning, perceptron
1,336,843,088
se_39540123
stackoverflow
MACHINE_LEARNING
multioutput regression by xgboost
multioutput regression by xgboost Is it possible to train a model by xgboost that has multiple continuous outputs (multi-regression)? What would be the objective of training such a model?
https://stackoverflow.com/questions/39540123/multioutput-regression-by-xgboost
machine-learning, xgboost
1,474,060,235
se_78376085
stackoverflow
MACHINE_LEARNING
RuntimeError: Default process group has not been initialized, please make sure to call init_process_group
RuntimeError: Default process group has not been initialized, please make sure to call init_process_group I am using CoDi which is multimodal Latent diffusion model. I am trying to remove the modules on images and video from CoDi and fine tune it with text-music pair data. The training script (train.py) for generating...
https://stackoverflow.com/questions/78376085/runtimeerror-default-process-group-has-not-been-initialized-please-make-sure-t
python, machine-learning, deep-learning, pytorch, artificial-intelligence
1,713,935,111
se_59419617
stackoverflow
MACHINE_LEARNING
I can&#39;t install OpenOpt in Python 3
I can&#39;t install OpenOpt in Python 3 I have upgrade my pip. sudo pip install --upgrade pip And used sudo pip install openopt It says: Collecting sortedcontainers Downloading https://files.pythonhosted.org/packages/13/f3/cf85f7c3a2dbd1a515d51e1f1676d971abe41bba6f4ab5443240d9a78e5b/sortedcontainers-2.1.0-py2.py3-...
https://stackoverflow.com/questions/59419617/i-cant-install-openopt-in-python-3
machine-learning, svm, quadratic-programming
1,576,813,948
se_71809044
stackoverflow
MACHINE_LEARNING
metric learning and contrastive learning difference
metric learning and contrastive learning difference I researched some materials,and know that the goal of contrastive learning and metric learning are both to learn such an embedding space in which similar sample pairs stay close to each other while dissimilar ones are far apart. But what is the difference of metric l...
https://stackoverflow.com/questions/71809044/metric-learning-and-contrastive-learning-difference
machine-learning, deep-learning, embedding, supervised-learning, self-supervised-learning
1,649,515,242