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_79333072 | stackoverflow | MACHINE_LEARNING | Using f64 in Burn tensor in Rust | Using f64 in Burn tensor in Rust
I am new to Rust and I'm looking into using Burn to port some Python/Torch code that I have for a new statistical parametric method.
Baby step 1: I want to generate a (10, 1) tensor with random values generated from a Cauchy distribution with known parameters. The distributions in Burn... | https://stackoverflow.com/questions/79333072/using-f64-in-burn-tensor-in-rust | machine-learning, rust | 1,736,167,398 |
se_35292741 | stackoverflow | MACHINE_LEARNING | What svm python modules use gpu? | What svm python modules use gpu?
I wonder what svm python modules use gpu accelerating.
Does libsvm or scikit-svm use gpu?
How can I use gpu accelerating with svm? | https://stackoverflow.com/questions/35292741/what-svm-python-modules-use-gpu | python, machine-learning, gpu, svm | 1,455,022,730 |
se_2444953 | stackoverflow | MACHINE_LEARNING | How to use ngram to do word similarity? | How to use ngram to do word similarity?
I hear that google uses up to 7-grams for their semantic-similarity comparison. I am interested in finding words that are similar in context (i.e. cat and dog) and I was wondering how do I compute the similarity of two words on a n-gram model given that n > 2.
So basically given... | https://stackoverflow.com/questions/2444953/how-to-use-ngram-to-do-word-similarity | machine-learning, nlp, artificial-intelligence, n-gram | 1,268,624,348 |
se_51523248 | stackoverflow | MACHINE_LEARNING | doc2vec inaccurate cosine similarity | doc2vec inaccurate cosine similarity
I have trained doc2vec model on 4 million records. I want to find most similar sentence to a new sentence i put in from my data but i am getting very bad results.
sample of data:
Xolo Era (Black, 8 GB)(1 GB RAM).
Sugar C6 (White, 16 GB)(2 GB RAM).
Celkon Star 4G+ (Black & Dark Blue... | https://stackoverflow.com/questions/51523248/doc2vec-inaccurate-cosine-similarity | python, machine-learning, gensim, word2vec, doc2vec | 1,532,534,406 |
se_62272056 | stackoverflow | MACHINE_LEARNING | What are the differences between contextual embedding and word embedding | What are the differences between contextual embedding and word embedding
I am trying to understand the concept of embedding for the deep learning models.
I understand how employing word2vec can address the limitations of using the one-hot vectors.
However, recently I see a plethora of blog posts stating ELMo, BERT, ... | https://stackoverflow.com/questions/62272056/what-are-the-differences-between-contextual-embedding-and-word-embedding | machine-learning, deep-learning, nlp, artificial-intelligence, word-embedding | 1,591,654,630 |
se_45478716 | stackoverflow | MACHINE_LEARNING | Run TensorFlow remotely | Run TensorFlow remotely
I am new to TensorFlow, Linux, and ML. I am trying to use a GPU in another system in my lab for training my model. I have connected to the system using SSH.
Now what I am stuck on is how should I write the python code? One thing I can do is run python in the terminal window where I can see the... | https://stackoverflow.com/questions/45478716/run-tensorflow-remotely | python, linux, ssh, machine-learning, tensorflow | 1,501,748,633 |
se_30919454 | stackoverflow | MACHINE_LEARNING | How to make an ensemble for two binary classifiers? | How to make an ensemble for two binary classifiers?
I have two classifiers for a multimedia dataset. One for visual material and one for textual material. I want to combine the predictions of these classifiers to make a final prediction. I have been reading about bagging, boosting and stacking ensembles and all seem u... | https://stackoverflow.com/questions/30919454/how-to-make-an-ensemble-for-two-binary-classifiers | python, machine-learning, scikit-learn, classification | 1,434,640,776 |
se_79603404 | stackoverflow | MACHINE_LEARNING | Why does RandomizedSearchCV sometimes return worse results than manual tuning in scikit-learn? | Why does RandomizedSearchCV sometimes return worse results than manual tuning in scikit-learn?
I'm working on a classification problem using scikit-learn's RandomForestClassifier. I tried using RandomizedSearchCV for hyperparameter tuning, but the results were worse than when I manually set the parameters based on int... | https://stackoverflow.com/questions/79603404/why-does-randomizedsearchcv-sometimes-return-worse-results-than-manual-tuning-in | python, machine-learning, scikit-learn | 1,746,189,800 |
se_79697973 | stackoverflow | MACHINE_LEARNING | None default values in XGBoost regressor model | None default values in XGBoost regressor model
I am encountering a problem regarding XGBoost regressor. It produces NONE' default values as shown in figure below. What could be the reason behind for getting 'NONE' default values for XSGBoost regressor Model.
How to sort out this problem. Moreover, I want to know on w... | https://stackoverflow.com/questions/79697973/none-default-values-in-xgboost-regressor-model | python, machine-learning, parameters, jupyter, xgboost | 1,752,218,047 |
se_79815177 | stackoverflow | MACHINE_LEARNING | How to download the output folder on Kaggle? | How to download the output folder on Kaggle?
I wrote a notebook on Kaggle and imported a dataset.
The main content of the notebook is as follows:
%%bash
pip install xxx # Install dependencies
if [ ! -d "/kaggle/working/latex-ocr-pytorch" ]; then
echo "Directory does not exist, copying..."
cp -r /kaggle/in... | https://stackoverflow.com/questions/79815177/how-to-download-the-output-folder-on-kaggle | python, machine-learning, jupyter-notebook, download, kaggle | 1,762,747,571 |
se_79810820 | stackoverflow | MACHINE_LEARNING | Machine Learning Project using Multidimensional Array Input/Outputs | Machine Learning Project using Multidimensional Array Input/Outputs
I am struggling to get my ML model to accept the input and outputs that I need.
My aim is to have it accept this as the input:
input_x = [
((4.11, 8.58, -2.2), (-1.27, -8.76, 2.23)),
((0.43, -6.53, 1.25), (7.91, -10.76, 0.06)),
...
]
and... | https://stackoverflow.com/questions/79810820/machine-learning-project-using-multidimensional-array-input-outputs | python, machine-learning, scikit-learn, advice | 1,762,400,686 |
se_79806783 | stackoverflow | MACHINE_LEARNING | How to handle unstable best_iteration in LightGBM when using Optuna for hyperparameter optimization? | How to handle unstable best_iteration in LightGBM when using Optuna for hyperparameter optimization?
I'm using Optuna to optimize LightGBM hyperparameters, and I'm running into an issue with the variability of best_iteration across different random seeds.
Current Setup
I train multiple models with different seeds for ... | https://stackoverflow.com/questions/79806783/how-to-handle-unstable-best-iteration-in-lightgbm-when-using-optuna-for-hyperpar | machine-learning, hyperparameters, lightgbm, optuna | 1,762,025,599 |
se_65378020 | stackoverflow | MACHINE_LEARNING | Train and test split data with features | Train and test split data with features
Load the Iris dataset from sklearn. Split the dataset into training and testing parts. Pick 2 of the 4 features.
I write this code:
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
iris = load_iris()
X, y = iris.data, iris.target
X_tra... | https://stackoverflow.com/questions/65378020/train-and-test-split-data-with-features | python, machine-learning, dataset, training-data | 1,608,451,386 |
se_78303940 | stackoverflow | MACHINE_LEARNING | Deeplearning4j - creating a model for strings employee, worker, associate etc | Deeplearning4j - creating a model for strings employee, worker, associate etc
I wanted to build a model / train the model using deeplearning4j.
This model should understand all the employee related jargon for example, it should understand the words Employee, Worker, Associate as same words.
I was using below code snip... | https://stackoverflow.com/questions/78303940/deeplearning4j-creating-a-model-for-strings-employee-worker-associate-etc | machine-learning, deep-learning, deeplearning4j | 1,712,746,896 |
se_79815197 | stackoverflow | MACHINE_LEARNING | Where is EXECUTORCH_LIBRARY defined in ExecuTorch v1.0? | Where is EXECUTORCH_LIBRARY defined in ExecuTorch v1.0?
I’m trying to register a custom operator for ExecuTorch (v1.0, built from the PyTorch 2.5 source tree).
My goal is to create a shared library that defines a few quantum operators and runs them from a .pte model using the ExecuTorch runtime.
#include <torch/extens... | https://stackoverflow.com/questions/79815197/where-is-executorch-library-defined-in-executorch-v1-0 | machine-learning, mobile, pytorch | 1,762,750,310 |
se_79812992 | stackoverflow | MACHINE_LEARNING | Getting unrecognized arguments: --federated-token in creating pipeline in microsoft/MLOpsPython | Getting unrecognized arguments: --federated-token in creating pipeline in microsoft/MLOpsPython
I am using this repo to create a mlops pipeline in Azure Devops.
When i tried to run the CI pipeline, I am getting the unrecognized Federal Token. I asked chatgpt, it says to update the cli version. I am not sure it will wo... | https://stackoverflow.com/questions/79812992/getting-unrecognized-arguments-federated-token-in-creating-pipeline-in-micros | azure, machine-learning, azure-pipelines, pipeline, mlops | 1,762,581,131 |
se_79812688 | stackoverflow | MACHINE_LEARNING | After encoding my categorical columns in a pandas dataframe, I was left with too many columns. How can I drop some? | After encoding my categorical columns in a pandas dataframe, I was left with too many columns. How can I drop some?
I am using Python with a pandas dataframe, it is a CSV of Steam games, and I have the categorical columns of publishers, developers, categories, genres, and tags, but categories, genres, and tags are the... | https://stackoverflow.com/questions/79812688/after-encoding-my-categorical-columns-in-a-pandas-dataframe-i-was-left-with-too | python, pandas, dataframe, machine-learning, one-hot-encoding | 1,762,539,790 |
se_79785472 | stackoverflow | MACHINE_LEARNING | Installation error while installing GroundingDino | Installation error while installing GroundingDino
I am trying to install the GroundingDino as instructed in the README file of their official GitHub repo, but I am facing the error below:
Obtaining file:///home/kgupta/workspace/Synthetic_Data_gen/Annotation_Agent/models/GroundingDINO
Preparing metadata (setup.py) ..... | https://stackoverflow.com/questions/79785472/installation-error-while-installing-groundingdino | machine-learning, pytorch, neural-network, large-language-model | 1,759,928,025 |
se_79812421 | stackoverflow | MACHINE_LEARNING | Getting an error while installing reasoning-gym library | Getting an error while installing reasoning-gym library
I am getting this error while downloading the Reasoning Gym library. How to resolve it?
Building wheels for collected packages: pycosat
Building wheel for pycosat (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pycosat (... | https://stackoverflow.com/questions/79812421/getting-an-error-while-installing-reasoning-gym-library | python, machine-learning, large-language-model | 1,762,523,904 |
se_79810670 | stackoverflow | MACHINE_LEARNING | How can I get torch.set_grad_enabled(True) to work in ComfyUI? | How can I get torch.set_grad_enabled(True) to work in ComfyUI?
I just spent hours figuring out that the following code fails when included in a ComfyUI custom node, but works perfectly fine outside (using the same Python venv). I finally found out that someone had called torch.set_grad_enabled(False) (I don't know why... | https://stackoverflow.com/questions/79810670/how-can-i-get-torch-set-grad-enabledtrue-to-work-in-comfyui | machine-learning, pytorch | 1,762,382,337 |
se_8945229 | stackoverflow | MACHINE_LEARNING | Accuracy of LibSVM decreases | Accuracy of LibSVM decreases
After getting my testlabel and trainlabel, i implemented SVM on libsvm and i got an accuracy of 97.4359%. ( c= 1 and g = 0.00375)
model = svmtrain(TrainLabel, TrainVec, '-c 1 -g 0.00375');
[predict_label, accuracy, dec_values] = svmpredict(TestLabel, TestVec, model);
After i find the be... | https://stackoverflow.com/questions/8945229/accuracy-of-libsvm-decreases | matlab, machine-learning, svm, libsvm | 1,327,079,618 |
se_15581250 | stackoverflow | MACHINE_LEARNING | Bad results when testing libsvm in matlab | Bad results when testing libsvm in matlab
can someone help me to solve this?
I want to test whether this classification is already good or not. So, I try with data testing=data training. it will give 100% (acc) if the classification is good.
this is the code that I found from this site:
data= [170 66 ... | https://stackoverflow.com/questions/15581250/bad-results-when-testing-libsvm-in-matlab | matlab, machine-learning, classification, svm, libsvm | 1,363,993,646 |
se_19356995 | stackoverflow | MACHINE_LEARNING | Libsvm Classification MATLAB | Libsvm Classification MATLAB
I used 1~200 data as trainning data, 201~220 as testing data
format likes: 3 class(class 1,class 2, class 3) and 20 features
2 1:100 2:96 3:88 4:94 5:96 6:94 7:72 8:68 9:69 10:70 11:76 12:70 13:73 14:71 15:74 16:76 17:78 18:81 19:76 20:76
2 1:96 2:100 3:88 4:88 5:90 6:98 7:71 8:66 9:63 10... | https://stackoverflow.com/questions/19356995/libsvm-classification-matlab | matlab, machine-learning, svm, libsvm | 1,381,742,215 |
se_38241410 | stackoverflow | MACHINE_LEARNING | Remember LSTM state for next batch (stateful LSTM) | Remember LSTM state for next batch (stateful LSTM)
Given a trained LSTM model, I want to perform inference for single timesteps, i.e. seq_length = 1 in the example below. After each timestep the internal LSTM (memory and hidden) states need to be remembered for the next 'batch'. For the very beginning of the inference... | https://stackoverflow.com/questions/38241410/remember-lstm-state-for-next-batch-stateful-lstm | python, tensorflow, machine-learning, lstm, recurrent-neural-network | 1,467,882,160 |
se_58069629 | stackoverflow | MACHINE_LEARNING | How does the LSTM know number of time steps and features in an Conv1D-LSTM network? | How does the LSTM know number of time steps and features in an Conv1D-LSTM network?
I have a time series signal (n samples, each sample has 81 time steps and 3 features = n x 81 x 3).
I am using an conv1D-LSTM network. n_timesteps = 81, n_features = 3.
Normal LSTM specifies both n_timesteps and n_features, however wh... | https://stackoverflow.com/questions/58069629/how-does-the-lstm-know-number-of-time-steps-and-features-in-an-conv1d-lstm-netwo | tensorflow, machine-learning, keras, conv-neural-network, lstm | 1,569,269,812 |
se_61399871 | stackoverflow | MACHINE_LEARNING | Interpretation of RNN/LSTM cell | Interpretation of RNN/LSTM cell
I am learning RNN, especially LSTM networks. I have read a lot of topics, including this one and I still have some misunderstandings.
The image below is from this article and it represents single RNN cell unfolded in time.
1. Do I understand correctly, that RNN cell is not a single neu... | https://stackoverflow.com/questions/61399871/interpretation-of-rnn-lstm-cell | machine-learning, deep-learning, lstm, recurrent-neural-network | 1,587,693,781 |
se_54286472 | stackoverflow | MACHINE_LEARNING | Why Long Short-term Memory (LSTM) is called as both a Long and Short type of Memory? | Why Long Short-term Memory (LSTM) is called as both a Long and Short type of Memory?
Can any one tell me why LSTM is called as both Long and Short type of memory?
I know in LSTM, they stored the some amount of data of their previous state.
But if it is stored as short time,then why it is called as a Long Term memory, ... | https://stackoverflow.com/questions/54286472/why-long-short-term-memory-lstm-is-called-as-both-a-long-and-short-type-of-mem | machine-learning, artificial-intelligence, lstm | 1,548,061,495 |
se_42110294 | stackoverflow | MACHINE_LEARNING | Getting zero after reading a column of integer values from a file | Getting zero after reading a column of integer values from a file
So i have been stuck with this problem for a week now.
I need to get the values from the last of column of the file that i am reading.
But i when i try to read that array outside the while loop i am getting zeroes instead of the values.
But if i re... | https://stackoverflow.com/questions/42110294/getting-zero-after-reading-a-column-of-integer-values-from-a-file | java, machine-learning, integer, bufferedreader, filereader | 1,486,548,990 |
se_33109011 | stackoverflow | MACHINE_LEARNING | Suitable Machine Learning algorithm for multi-conditionned variables? | Suitable Machine Learning algorithm for multi-conditionned variables?
I am working on economic data, explaining industries behaviours regarding economic cycle. For each industry I have around 30 independent factors. My Y explained variable is weekly stocks returns. Factors characteristics are:
Some are correlated wit... | https://stackoverflow.com/questions/33109011/suitable-machine-learning-algorithm-for-multi-conditionned-variables | algorithm, machine-learning, neural-network, binary-tree | 1,444,757,487 |
se_43534219 | stackoverflow | MACHINE_LEARNING | What is the difference among bst.best_score, bst.best_iteration and bst.best_ntree_limit in XGBoost? | What is the difference among bst.best_score, bst.best_iteration and bst.best_ntree_limit in XGBoost?
When I use xgboost to train my data for a 2-cates classification problem,I'd like to use the early stopping to get the best model, but I'm confused about which one to use in my predict as the early stop will return 3 d... | https://stackoverflow.com/questions/43534219/what-is-the-difference-among-bst-best-score-bst-best-iteration-and-bst-best-ntr | python, machine-learning, xgboost | 1,492,750,456 |
se_71854171 | stackoverflow | MACHINE_LEARNING | How can I use large hexadecimal values as training data in machine learning? | How can I use large hexadecimal values as training data in machine learning?
I am thinking of doing machine learning using sklearn. But the training data I have is a large hexadecimal value. How do I process this into training data? The code below is an example of a hexadecimal value
import sklearn
hex_train='0x504F1... | https://stackoverflow.com/questions/71854171/how-can-i-use-large-hexadecimal-values-as-training-data-in-machine-learning | python, machine-learning, scikit-learn | 1,649,838,001 |
se_62052406 | stackoverflow | MACHINE_LEARNING | Troubleshooting ML.NET machine learning model issues | Troubleshooting ML.NET machine learning model issues
I am trying to learn how ML.Net works.
I have tried to setup a model for candlestick data from stock exchanges. I have loaded the data from the exchange into an enumerable of a class with properties for timestamp, open, high, low, close and volume. (ohlcv are all de... | https://stackoverflow.com/questions/62052406/troubleshooting-ml-net-machine-learning-model-issues | c#, machine-learning, ml.net | 1,590,611,615 |
se_48072160 | stackoverflow | MACHINE_LEARNING | Training ML model from test data | Training ML model from test data
I was wondering if a model trains itself from the test data as well while evaluating it multiple times, leading to a over-fitting scenario. Normally we split the training data into train-test splits and I noticed some people split it into 3 sets of data - train, test and eval. eval is ... | https://stackoverflow.com/questions/48072160/training-ml-model-from-test-data | machine-learning | 1,514,960,343 |
se_54092571 | stackoverflow | MACHINE_LEARNING | Validation accuracy dropping in CNN Chainer | Validation accuracy dropping in CNN Chainer
I am classifying cell images using CNN in Chainer. The validation accuracy of the model is dropping along with the rise of main/training accuracy. I want to know why the validation accuracy is decreasing and what are the ways to increase the validation accuracy.
The data s... | https://stackoverflow.com/questions/54092571/validation-accuracy-dropping-in-cnn-chainer | python, machine-learning, conv-neural-network, chainer | 1,546,953,050 |
se_43204194 | stackoverflow | MACHINE_LEARNING | CNN is not learning at all | CNN is not learning at all
I just created my own CNN which reads data from the disk and tries to learn.
But the weights don't seem to learn at all, they all stay randomized.
The biases change only a bit. I already tried to use grayscale images, without success. I also tired to reduce my dataset to only 2 classes which... | https://stackoverflow.com/questions/43204194/cnn-is-not-learning-at-all | python, tensorflow, machine-learning, deep-learning, conv-neural-network | 1,491,300,494 |
se_79806146 | stackoverflow | MACHINE_LEARNING | How should I balance DSA, ML fundamentals, PyTorch implementation, and Kaggle practice for ML Engineer interviews? | How should I balance DSA, ML fundamentals, PyTorch implementation, and Kaggle practice for ML Engineer interviews?
I’m a Computer Science graduate preparing for ML/AI Engineer roles.
I’m facing a dilemma about what to focus on, how much to allocate time to each area, and what exact roadmap to follow to prepare effecti... | https://stackoverflow.com/questions/79806146/how-should-i-balance-dsa-ml-fundamentals-pytorch-implementation-and-kaggle-pr | machine-learning, pytorch, data-science, kaggle, advice | 1,761,939,345 |
se_61685878 | stackoverflow | MACHINE_LEARNING | Sense of Upper Confidence Bound algorithm | Sense of Upper Confidence Bound algorithm
I watched a tutorial about UCB at Udemy and didn't saw the sense of using that algorithm.
For example, you have 10 commercial and you know 10000 user's behavior (click or not). You use UCB to know the best commercial of those 10. But you also can count all clicks and get the ... | https://stackoverflow.com/questions/61685878/sense-of-upper-confidence-bound-algorithm | machine-learning, math, data-science | 1,588,963,222 |
se_74792455 | stackoverflow | MACHINE_LEARNING | module 'keras.layers' has no attribute 'experimental' | module 'keras.layers' has no attribute 'experimental'
hello so I was trying to resize and rescale my dataset as shown below l but I encountered this error:
AttributeError: module 'keras.layers' has no attribute 'experimental'
resize_and_rescale= tf.keras.Sequential([
layers.experimental.preprocess... | https://stackoverflow.com/questions/74792455/module-keras-layers-has-no-attribute-experimental | python, tensorflow, machine-learning, deep-learning, dataset | 1,670,978,629 |
se_76746513 | stackoverflow | MACHINE_LEARNING | How to fix 'MountainCarEnv' object has no attribute 'seed'? | How to fix 'MountainCarEnv' object has no attribute 'seed'?
Using the gym library to create the environment using this code block:
from envs import Maze
from utils import plot_policy, plot_tabular_cost_to_go, test_agent, plot_stats, seed_everything
import gym
env = gym.make('MountainCar-v0')
seed_ever... | https://stackoverflow.com/questions/76746513/how-to-fix-mountaincarenv-object-has-no-attribute-seed | python, machine-learning, reinforcement-learning, openai-gym | 1,690,081,613 |
se_62961194 | stackoverflow | MACHINE_LEARNING | How does BertForSequenceClassification classify on the CLS vector? | How does BertForSequenceClassification classify on the CLS vector?
Background:
Following along with this question when using bert to classify sequences the model uses the "[CLS]" token representing the classification task. According to the paper:
The first token of every sequence is always a special classification
to... | https://stackoverflow.com/questions/62961194/how-does-bertforsequenceclassification-classify-on-the-cls-vector | python, machine-learning, huggingface-transformers, bert-language-model, transformer-model | 1,595,016,869 |
se_77469097 | stackoverflow | MACHINE_LEARNING | How can I process a pdf using OpenAI's APIs (GPTs)? | How can I process a pdf using OpenAI's APIs (GPTs)?
The web interface for ChatGPT has an easy pdf upload. Is there an API from openAI that can receive pdfs?
I know there are 3rd party libraries that can read pdf but given there are images and other important information in a pdf, it might be better if a model like... | https://stackoverflow.com/questions/77469097/how-can-i-process-a-pdf-using-openais-apis-gpts | python, machine-learning, pdf, openai-api, chat-gpt-4 | 1,699,795,544 |
se_79658224 | stackoverflow | MACHINE_LEARNING | evaluation_strategy() not supported in transformers library | evaluation_strategy() not supported in transformers library
I've recently been attempting to fine-tune the pretrained neural network, "cardiffnlp/twitter-roberta-base-offensive." However, when I attempted to run a Python program I created, "evaluation_strategy" was considered to be an "unexpected argument" regardless ... | https://stackoverflow.com/questions/79658224/evaluation-strategy-not-supported-in-transformers-library | python, machine-learning, pytorch, artificial-intelligence, huggingface-transformers | 1,749,425,227 |
se_17386394 | stackoverflow | MACHINE_LEARNING | Determining geo location by arbitrary body of text | Determining geo location by arbitrary body of text
I am working on a project that I am not exactly sure how to approach. The problem can be summarized as following:
Given an arbitrary body of text(kind of like a report), determine what geographic location that each part of the report is referring to.
Geographic lo... | https://stackoverflow.com/questions/17386394/determining-geo-location-by-arbitrary-body-of-text | machine-learning, nlp | 1,372,557,152 |
se_72639699 | stackoverflow | MACHINE_LEARNING | How can I fine-tune a masked language model? | How can I fine-tune a masked language model?
I'm trying to follow the Hugging Face tutorial on fine-tuning a masked language model (masking a set of words randomly and predicting them). But they assume that the dataset is in their system (can load it with from datasets import load_dataset; load_dataset("dataset_name")... | https://stackoverflow.com/questions/72639699/how-can-i-fine-tune-a-masked-language-model | machine-learning, pytorch, huggingface-transformers, transformer-model, huggingface-datasets | 1,655,345,312 |
se_79787781 | stackoverflow | MACHINE_LEARNING | Matching PyTorch and ONNX outputs layer-wise for debugging inference drift | Matching PyTorch and ONNX outputs layer-wise for debugging inference drift
I want to debug layer-by-layer to see where the ONNX model starts deviating from the PyTorch model outputs.
I can extract intermediate outputs in PyTorch using forward hooks, like:
def get_activation(name):
def hook(model, input, output):
... | https://stackoverflow.com/questions/79787781/matching-pytorch-and-onnx-outputs-layer-wise-for-debugging-inference-drift | machine-learning, pytorch, artificial-intelligence, onnx | 1,760,149,969 |
se_79790582 | stackoverflow | MACHINE_LEARNING | add a condition on time in scipy odeint | add a condition on time in scipy odeint
I am having some troubles finding a simple solution to what seems to be a simple problem.
I want to compute the integration a simple function. And I want to modify this function if it reaches a certain amplitude. And I want to keep this function for a fixed amount of time. Then ... | https://stackoverflow.com/questions/79790582/add-a-condition-on-time-in-scipy-odeint | python, machine-learning, scipy, scipy-integrate | 1,760,472,463 |
se_79789192 | stackoverflow | MACHINE_LEARNING | Cannot calculate confusion matrix utilizing supervision from roboflow for Yolov8 model | Cannot calculate confusion matrix utilizing supervision from roboflow for Yolov8 model
I am trying to calculate the confusion matrix for my yolov8 (or yolov11) model utilizing supervision from roboflow. I found some instructions but they do not seem to be crystal clear. For example these instructions are a bit vague:
... | https://stackoverflow.com/questions/79789192/cannot-calculate-confusion-matrix-utilizing-supervision-from-roboflow-for-yolov8 | python, machine-learning, object-detection, confusion-matrix, yolov8 | 1,760,352,621 |
se_76633368 | stackoverflow | MACHINE_LEARNING | How does one set the pad token correctly (not to eos) during fine-tuning to avoid model not predicting EOS? | How does one set the pad token correctly (not to eos) during fine-tuning to avoid model not predicting EOS?
tldr; what I really want to know is what is the official way to set pad token for fine tuning it wasn't set during original training, so that it doesn't not learn to predict EOS.
colab: https://colab.research.go... | https://stackoverflow.com/questions/76633368/how-does-one-set-the-pad-token-correctly-not-to-eos-during-fine-tuning-to-avoi | machine-learning, pytorch, huggingface-transformers, huggingface, huggingface-tokenizers | 1,688,692,284 |
se_79507456 | stackoverflow | MACHINE_LEARNING | Tensorflow Keras model with interleave is having issues fitting | Tensorflow Keras model with interleave is having issues fitting
I'm working on a CNN project where I make use of TensorFlow and Keras. In addition, I use interleave as the dataset is rather large (too large to load into the RAM with our resources). But there's an issue somewhere as the training gets stuck at a very lo... | https://stackoverflow.com/questions/79507456/tensorflow-keras-model-with-interleave-is-having-issues-fitting | python, tensorflow, machine-learning, keras, dataset | 1,741,894,476 |
se_60018578 | stackoverflow | MACHINE_LEARNING | What does model.eval() do in pytorch? | What does model.eval() do in pytorch?
When should I use .eval()? I understand it is supposed to allow me to "evaluate my model". How do I turn it back off for training?
Example training code using .eval(). | https://stackoverflow.com/questions/60018578/what-does-model-eval-do-in-pytorch | python, machine-learning, deep-learning, pytorch | 1,580,572,695 |
se_79692974 | stackoverflow | MACHINE_LEARNING | UndefinedErrorException in HostFunction:No implementation found for com.facebook.jni.HybridData org.pytorch.executorch.HuggingFaceTokenizer.initHybrid | UndefinedErrorException in HostFunction:No implementation found for com.facebook.jni.HybridData org.pytorch.executorch.HuggingFaceTokenizer.initHybrid
I am working with react-native-executorch and trying to use the models as mentioned in the documentation only.
const model = useTextEmbeddings({
modelSource: ALL_MI... | https://stackoverflow.com/questions/79692974/undefinederrorexception-in-hostfunctionno-implementation-found-for-com-facebook | react-native, machine-learning, pytorch | 1,751,897,311 |
se_79790016 | stackoverflow | MACHINE_LEARNING | ERROR: No matching distribution found for tensorflow==2.12 | ERROR: No matching distribution found for tensorflow==2.12
I use macOS. I have to use LibRecommender in my code.
Python Version: 3.8.13
According to this link, the 2.10 is a suitable tensorflow version.
This is what's in my requirements.txt file I install within a conda environment.
absl-py==2.1.0
aiohttp==3.9.5
aiosi... | https://stackoverflow.com/questions/79790016/error-no-matching-distribution-found-for-tensorflow-2-12 | python, python-3.x, tensorflow, machine-learning | 1,760,433,795 |
se_58127059 | stackoverflow | MACHINE_LEARNING | How to understand masked multi-head attention in transformer | How to understand masked multi-head attention in transformer
I'm currently studying the code of transformer, but I can not understand the masked multi-head of decoder. The paper said that it was to prevent you from seeing the generating word, but I can not understand if the words after generating word have not been ge... | https://stackoverflow.com/questions/58127059/how-to-understand-masked-multi-head-attention-in-transformer | tensorflow, machine-learning, deep-learning, transformer-model, attention-model | 1,569,552,048 |
se_79789223 | stackoverflow | MACHINE_LEARNING | Why is there a duplicate index when using sort_index() in pandas? | Why is there a duplicate index when using sort_index() in pandas?
I am doing target mean mapping based on an external statistical table, where org_ is the external data and merged_data is the set of training data and test data. After processing, the features of merged_data and org_ are exactly the same, and then fed i... | https://stackoverflow.com/questions/79789223/why-is-there-a-duplicate-index-when-using-sort-index-in-pandas | python, pandas, machine-learning | 1,760,355,424 |
se_73734318 | stackoverflow | MACHINE_LEARNING | What is nlp in spacy? | What is nlp in spacy?
Usually we start from:
nlp = spacy.load('en_encore_web_sm') # or medium, or large
or
nlp = English()
then:
doc = nlp('my text')
Then we can do a lot of fun with that even not knowing the nature of the first line.
But what exactly is 'nlp'? What is going on under the hood? Is "nlp" a pretrained... | https://stackoverflow.com/questions/73734318/what-is-nlp-in-spacy | python-3.x, machine-learning, nlp, spacy | 1,663,257,993 |
se_44399334 | stackoverflow | MACHINE_LEARNING | What is the best Head Cascade Classifier in OpenCV | What is the best Head Cascade Classifier in OpenCV
I am using OpenCV 3.1 on a Raspbian Jessie OS using pi zero board.
I used "haarcascade_frontalface_alt" for face detection and it works really good on low resolution images using Python. What i want to do is to detect the heads of people since i may not have their fa... | https://stackoverflow.com/questions/44399334/what-is-the-best-head-cascade-classifier-in-opencv | python, opencv, machine-learning, object-detection, face-detection | 1,496,781,158 |
se_75806451 | stackoverflow | MACHINE_LEARNING | Evaluating huggingface transformer with trainer gives different results | Evaluating huggingface transformer with trainer gives different results
I am using a pre-trained Transformer for sequence classification which I fine-tuned on my dataset with the Trainer class. When I evaluate the model using the Trainer class I get an accuracy of 94%
trainer = Trainer(model=model)
preds = trainer.pre... | https://stackoverflow.com/questions/75806451/evaluating-huggingface-transformer-with-trainer-gives-different-results | python, machine-learning, huggingface-transformers | 1,679,433,655 |
se_29831489 | stackoverflow | MACHINE_LEARNING | Convert array of indices to one-hot encoded array in NumPy | Convert array of indices to one-hot encoded array in NumPy
Given a 1D array of indices:
a = array([1, 0, 3])
I want to one-hot encode this as a 2D array:
b = array([[0,1,0,0], [1,0,0,0], [0,0,0,1]]) | https://stackoverflow.com/questions/29831489/convert-array-of-indices-to-one-hot-encoded-array-in-numpy | python, numpy, machine-learning, numpy-ndarray, one-hot-encoding | 1,429,813,494 |
se_75970695 | stackoverflow | MACHINE_LEARNING | How to Stacking ML models correctly - Sklearn | How to Stacking ML models correctly - Sklearn
I need some help to understand how to build the stack correctly.
I started building a Stack right now from only two models: RandomForestRegressor, XGBRegressor.
Each model is essentially an independent object.
But it is also possible to create a Stack object that consists ... | https://stackoverflow.com/questions/75970695/how-to-stacking-ml-models-correctly-sklearn | python, machine-learning, scikit-learn, deep-learning | 1,681,045,680 |
se_79784709 | stackoverflow | MACHINE_LEARNING | Why does a LSTM pytorch model yield constant values? | Why does a LSTM pytorch model yield constant values?
I am training a LSTM model with data from yfinance. The process is really standard. I get the data with yf.download(ticker=ticker) where ticker='AAPL and do df.rolling(30, min_periods=1) to smooth the data. Then I adapt the data for training like this:
def create_ds... | https://stackoverflow.com/questions/79784709/why-does-a-lstm-pytorch-model-yield-constant-values | python, machine-learning, pytorch, neural-network, lstm | 1,759,850,970 |
se_26355942 | stackoverflow | MACHINE_LEARNING | Why is the F-Measure a harmonic mean and not an arithmetic mean of the Precision and Recall measures? | Why is the F-Measure a harmonic mean and not an arithmetic mean of the Precision and Recall measures?
When we calculate the F-Measure considering both Precision and Recall, we take the harmonic mean of the two measures instead of a simple arithmetic mean.
What is the intuitive reason behind taking the harmonic mean ... | https://stackoverflow.com/questions/26355942/why-is-the-f-measure-a-harmonic-mean-and-not-an-arithmetic-mean-of-the-precision | machine-learning, classification, data-mining | 1,413,274,925 |
se_79710042 | stackoverflow | MACHINE_LEARNING | Convert custom YOLOX model (.pth) to tflite model and quantize model | Convert custom YOLOX model (.pth) to tflite model and quantize model
I have trained YOLOX using this repo on a custom dataset with 8 classes. The final output is a .pth file which I need to convert to a quantized .tflite format but I am completely stuck.
What I tried so far:
Use ai-edge-torch but I can't install the ... | https://stackoverflow.com/questions/79710042/convert-custom-yolox-model-pth-to-tflite-model-and-quantize-model | python, tensorflow, machine-learning, pytorch, tflite | 1,753,168,012 |
se_63073170 | stackoverflow | MACHINE_LEARNING | Test data gives "Found 0 images in 0 classes" using flow_from_directory | Test data gives "Found 0 images in 0 classes" using flow_from_directory
This is my flow_from_directory code
train_image_generator = ImageDataGenerator(rescale=1./255)
validation_image_generator = ImageDataGenerator(rescale=1./255)
test_image_generator = ImageDataGenerator(rescale=1./255)
train_data_gen = tr... | https://stackoverflow.com/questions/63073170/test-data-gives-found-0-images-in-0-classes-using-flow-from-directory | machine-learning, keras, conv-neural-network, machine-learning-model | 1,595,592,188 |
se_79604384 | stackoverflow | MACHINE_LEARNING | memory leak in prediction tensorflow | memory leak in prediction tensorflow
Recently I trained two MLP model and saved weights for future work. I develop one module for loading model and use these model in another module.
Load model module contain this code to load models:
def creat_model_extractor(model_path, feature_count):
try:
tf.keras... | https://stackoverflow.com/questions/79604384/memory-leak-in-prediction-tensorflow | python, tensorflow, machine-learning | 1,746,249,425 |
se_78873304 | stackoverflow | MACHINE_LEARNING | How to sample multiple completions (n) directly from Claude API without a for loop | How to sample multiple completions (n) directly from Claude API without a for loop
I'm using the Anthropic Claude API and I'm trying to generate multiple completions (n completions) for a given prompt in a single API call. OpenAI's API provides an n parameter in their sampling settings to achieve this, but I can't fin... | https://stackoverflow.com/questions/78873304/how-to-sample-multiple-completions-n-directly-from-claude-api-without-a-for-lo | python, machine-learning, nlp, large-language-model, claude | 1,723,682,273 |
se_78659374 | stackoverflow | MACHINE_LEARNING | Function top_k_top_p_filtering doesn't exist anymore in transformers 4.41.x | Function top_k_top_p_filtering doesn't exist anymore in transformers 4.41.x
Function top_k_top_p_filtering doesn't exist anymore in transformers 4.41.x. In previous versions I used simply this
next_token_logscores = top_k_top_p_filtering(logits, top_k=k, top_p=p)
where k is the number of the elements, p is t... | https://stackoverflow.com/questions/78659374/function-top-k-top-p-filtering-doesnt-exist-anymore-in-transformers-4-41-x | python-3.x, machine-learning, huggingface-transformers | 1,719,163,247 |
se_79779907 | stackoverflow | MACHINE_LEARNING | Selective Inference on Ordinal Clustering | Selective Inference on Ordinal Clustering
I've been using an ordered stereotype (OSM) approach to ordinal clustering with the R library 'clustord'
clustord is very well-documented with step-by step vignette. Therefore, to execute row clustering with clustord, the script is as follows:
install.packages("clustord")
libr... | https://stackoverflow.com/questions/79779907/selective-inference-on-ordinal-clustering | r, machine-learning, cluster-analysis | 1,759,313,850 |
se_79769471 | stackoverflow | MACHINE_LEARNING | TensorRT PWC-Net Causing 2.4km Trajectory Error in iSLAM - Original PyTorch Works Fine | TensorRT PWC-Net Causing 2.4km Trajectory Error in iSLAM - Original PyTorch Works Fine
Problem Statement
My iSLAM system works correctly with the original PyTorch PWC-Net but produces catastrophic trajectory errors (2.4km ATE RMSE) when I replace it with a TensorRT-converted version. The TensorRT engine runs successfu... | https://stackoverflow.com/questions/79769471/tensorrt-pwc-net-causing-2-4km-trajectory-error-in-islam-original-pytorch-work | machine-learning, pytorch, nvidia, opticalflow, tensorrt | 1,758,283,020 |
se_76602355 | stackoverflow | MACHINE_LEARNING | I am using langchain to chat with my database I want json format as output which includes fieldname as key | I am using langchain to chat with my database I want json format as output which includes fieldname as key
I am working on Natural language to query your SQL Database using LangChain powered by ChatGPT.I am using Langchain's SQL database to chat with my database, it returns answers in the sentence I want the answer i... | https://stackoverflow.com/questions/76602355/i-am-using-langchain-to-chat-with-my-database-i-want-json-format-as-output-which | python, machine-learning, nlp, openai-api, langchain | 1,688,366,209 |
se_48103301 | stackoverflow | MACHINE_LEARNING | Why is Random Search showing better results than Grid Search? | Why is Random Search showing better results than Grid Search?
I'm playing with RandomizedSearchCV function from scikit-learn. Some academic paper claims that Randomized Search can provide 'good enough' results comparing with a whole grid search, but saves a lot of time.
Surprisingly, on one occasion, the RandomizedSea... | https://stackoverflow.com/questions/48103301/why-is-random-search-showing-better-results-than-grid-search | python, python-3.x, machine-learning, scikit-learn, random-forest | 1,515,098,685 |
se_79622840 | stackoverflow | MACHINE_LEARNING | Is it possible to kill specific coeffients in polynomial regression model? | Is it possible to kill specific coeffients in polynomial regression model?
I need to make a multivariate polynomial regression. The code is based on https://saturncloud.io/blog/multivariate-polynomial-regression-with-python/.
So for my specific task I need to "kill" some coefficients. Is it possible to do so?
For exam... | https://stackoverflow.com/questions/79622840/is-it-possible-to-kill-specific-coeffients-in-polynomial-regression-model | python, machine-learning, scikit-learn, regression | 1,747,294,880 |
se_79669783 | stackoverflow | MACHINE_LEARNING | Rancom Forest Classifier model returns all zeroes | Rancom Forest Classifier model returns all zeroes
I'm trying to train a RandomForestClassifier Model. However, when I train it, it gives me all zeroes. And, I really can't seem to understand why. The dataset is HUGE (close to like 75,0000 rows), so, I am a bit lost. Here is the code:
import pandas as pd
import matplot... | https://stackoverflow.com/questions/79669783/rancom-forest-classifier-model-returns-all-zeroes | python, machine-learning, scikit-learn, random-forest | 1,750,196,146 |
se_20549969 | stackoverflow | MACHINE_LEARNING | PCA Dimensionality Reduction | PCA Dimensionality Reduction
I am trying to perform PCA reducing 900 dimensions to 10. So far I have:
covariancex = cov(labels);
[V, d] = eigs(covariancex, 40);
pcatrain = (trainingData - repmat(mean(traingData), 699, 1)) * V;
pcatest = (test - repmat(mean(trainingData), 225, 1)) * V;
Where labels are 1x699 labels... | https://stackoverflow.com/questions/20549969/pca-dimensionality-reduction | matlab, machine-learning, linear-algebra, pca | 1,386,868,771 |
se_79356691 | stackoverflow | MACHINE_LEARNING | LSTM autoencoder very poor results | LSTM autoencoder very poor results
I am working on blockchain transaction anomaly detection system and testing various models. Currently I am stuck on a LSTM autoencoder. I have preprocessed transaction data from ethereum network (used Robust scaler, removed string features and left only numerical columns). This is fr... | https://stackoverflow.com/questions/79356691/lstm-autoencoder-very-poor-results | machine-learning, lstm, autoencoder, anomaly-detection | 1,736,898,314 |
se_78137739 | stackoverflow | MACHINE_LEARNING | Plotting of gradient descent curves by using Keras | Plotting of gradient descent curves by using Keras
I have implemented the following code in Keras that uses the California housing dataset in an attempt to plot the values of theta 1 and theta 2, and how the chose of stochastic gradient descent, batch gradient or mini batch influences in the results:
import numpy as n... | https://stackoverflow.com/questions/78137739/plotting-of-gradient-descent-curves-by-using-keras | python, machine-learning, keras | 1,710,110,814 |
se_65039023 | stackoverflow | MACHINE_LEARNING | Medical insurance cost prediction using Linear regression | Medical insurance cost prediction using Linear regression
I am a beginner to machine learning. I have some basic knowledge about linear regression and logistic regression.
As an initial step to apply the concepts that I have learnt so far in linear regression I have tried predicting medical insurance cost based on the... | https://stackoverflow.com/questions/65039023/medical-insurance-cost-prediction-using-linear-regression | python, matplotlib, machine-learning, linear-regression | 1,606,487,313 |
se_41844311 | stackoverflow | MACHINE_LEARNING | List of all classification algorithms in scikit-learn? | List of all classification algorithms in scikit-learn?
I have a classification problem and I would like to test all the available algorithms in scikit-learn to test their performance in tackling the problem. | https://stackoverflow.com/questions/41844311/list-of-all-classification-algorithms-in-scikit-learn | python, algorithm, machine-learning, scikit-learn, classification | 1,485,323,330 |
se_79774394 | stackoverflow | MACHINE_LEARNING | Can I visualize a neural network’s loss landscape to see if it’s stuck in a bad minimum? Any code example for this? | Can I visualize a neural network’s loss landscape to see if it’s stuck in a bad minimum? Any code example for this?
So, I’m trying to understand why sometimes neural networks get stuck during training. I heard people talk about ‘local minima’ and ‘saddle points,’ but I can’t really picture them. I want to actually see... | https://stackoverflow.com/questions/79774394/can-i-visualize-a-neural-network-s-loss-landscape-to-see-if-it-s-stuck-in-a-bad | python, tensorflow, machine-learning, deep-learning, neural-network | 1,758,778,581 |
se_46759662 | stackoverflow | MACHINE_LEARNING | Classification with imbalanced dataset using Multi Layer Perceptrons | Classification with imbalanced dataset using Multi Layer Perceptrons
I am having a trouble in classification problem.
I have almost 400k number of vectors in training data with two labels, and I'd like to train MLP which classifies data into two classes.
However, the dataset is so imbalanced. 95% of them have label 1... | https://stackoverflow.com/questions/46759662/classification-with-imbalanced-dataset-using-multi-layer-perceptrons | machine-learning, neural-network, classification, imbalanced-data | 1,508,099,301 |
se_79773554 | stackoverflow | MACHINE_LEARNING | Batch processing with Ultralytics YOLO does not seem to work for coreml, but is working fine for .pt | Batch processing with Ultralytics YOLO does not seem to work for coreml, but is working fine for .pt
I am trying to do batch inference with YOLO11. I am working with MacBook and I am running into this issue
from ultralytics import YOLO
import numpy as np
# Load YOLO model
model = YOLO("yolo11s.mlpackage")
# Create 5... | https://stackoverflow.com/questions/79773554/batch-processing-with-ultralytics-yolo-does-not-seem-to-work-for-coreml-but-is | machine-learning, computer-vision, yolo, ultralytics | 1,758,707,774 |
se_79771930 | stackoverflow | MACHINE_LEARNING | How to integrate a lightweight image-to-text model into a React Native app? | How to integrate a lightweight image-to-text model into a React Native app?
I am trying to integrate an image-to-text model into a React Native mobile app.
My requirements:
The model should support image + text input → text output.
It should be lightweight enough to run on mobile devices.
What I tried
moondream-0.5b (... | https://stackoverflow.com/questions/79771930/how-to-integrate-a-lightweight-image-to-text-model-into-a-react-native-app | react-native, machine-learning, pytorch, nlp, onnx | 1,758,564,305 |
se_57231943 | stackoverflow | MACHINE_LEARNING | How can I randomly shuffle the labels of a Pytorch Dataset? | How can I randomly shuffle the labels of a Pytorch Dataset?
I am new to Pytorch, and I am having troubles with some technicalities. I have downloaded the MNIST dataset, using the following command:
train_dataset = dsets.MNIST(root='./data',
train=True,
transfo... | https://stackoverflow.com/questions/57231943/how-can-i-randomly-shuffle-the-labels-of-a-pytorch-dataset | machine-learning, computer-vision, dataset, pytorch | 1,564,228,843 |
se_68474451 | stackoverflow | MACHINE_LEARNING | Custom Training Loop for Tensorflow Variational Autoencoder: `tape.gradient(loss, decoder_model.trainable_weights)` Always Returns List Full of None's | Custom Training Loop for Tensorflow Variational Autoencoder: `tape.gradient(loss, decoder_model.trainable_weights)` Always Returns List Full of None's
I am trying to write a custom training loop for a variational autoencoder (VAE) that consists of two separate tf.keras.Model objects. The objective of this VAE is m... | https://stackoverflow.com/questions/68474451/custom-training-loop-for-tensorflow-variational-autoencoder-tape-gradientloss | tensorflow, machine-learning, autoencoder, gradienttape, custom-training | 1,626,890,580 |
se_79759086 | stackoverflow | MACHINE_LEARNING | n_jobs>=2 breaks reproducibility | n_jobs>=2 breaks reproducibility
I am facing a problem in maintaining the reproducibility in the ML project. I believe the core snippet of my issue is
clf = Clf(random_state=cfg.seed)
# instantiate the K-fold cross-validation object
cv = StratifiedKFold(
n_splits=cfg.train.n_folds,
shuffle=T... | https://stackoverflow.com/questions/79759086/n-jobs-2-breaks-reproducibility | python, tensorflow, machine-learning, scikit-learn, random-seed | 1,757,345,007 |
se_79769773 | stackoverflow | MACHINE_LEARNING | I am having latency in box rendering in Yolo object detection | I am having latency in box rendering in Yolo object detection
I'm developing a Flutter app for real-time pharmaceutical box detection using TensorFlow Lite. The detection works well, but I'm experiencing significant latency in bounding box rendering when moving the medicament, making the app feel unresponsive.
Current... | https://stackoverflow.com/questions/79769773/i-am-having-latency-in-box-rendering-in-yolo-object-detection | android, flutter, machine-learning, yolo | 1,758,301,092 |
se_79681718 | stackoverflow | MACHINE_LEARNING | Normalizing large free text input data | Normalizing large free text input data
Here is the case, i have data coming from free text input source, it is related to the degree and education level of the users
There are many typos, many crazy stuff going on in the data, there are over 10m records, the data could be anything from typos, some their industry, some... | https://stackoverflow.com/questions/79681718/normalizing-large-free-text-input-data | python, machine-learning, nlp, data-science, spell-checking | 1,751,016,774 |
se_79764845 | stackoverflow | MACHINE_LEARNING | TensorRT DLA Engine Build Fails for PWC-Net on Jetson NX - Missing Layer Support? | TensorRT DLA Engine Build Fails for PWC-Net on Jetson NX - Missing Layer Support?
I'm converting a PWC-Net optical flow model to run on Jetson NX DLA using the iSLAM framework, but the TensorRT engine build fails during DLA optimization.
Environment
Hardware: NVIDIA Jetson NX
Framework: iSLAM (PyTorch-based SLAM syst... | https://stackoverflow.com/questions/79764845/tensorrt-dla-engine-build-fails-for-pwc-net-on-jetson-nx-missing-layer-support | python, machine-learning, nvidia, opticalflow, tensorrt | 1,757,921,635 |
se_72579169 | stackoverflow | MACHINE_LEARNING | Scikit-learn: MAE criterion using mean (rather than median) | Scikit-learn: MAE criterion using mean (rather than median)
Scikit-learn's absolute_error criterion for decision trees and random forests (i.e., the MAE Criterion class: https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/tree/_criterion.pyx) scales poorly compared to the default squared_error criterion.
Se... | https://stackoverflow.com/questions/72579169/scikit-learn-mae-criterion-using-mean-rather-than-median | python, machine-learning, scikit-learn, random-forest, decision-tree | 1,654,890,288 |
se_79768360 | stackoverflow | MACHINE_LEARNING | How do I convert TensorFlow SavedModel into TensorFlow.js format? | How do I convert TensorFlow SavedModel into TensorFlow.js format?
I’m trying to convert my TensorFlow SavedModel into a TensorFlow.js format using tensorflowjs_converter.
tensorflowjs_converter --input_format=tf_saved_model --output_format=tfjs_graph_model --saved_model_tags=serve --strip_debug_ops SavedModel TFJS
2... | https://stackoverflow.com/questions/79768360/how-do-i-convert-tensorflow-savedmodel-into-tensorflow-js-format | python, tensorflow, machine-learning, tensorflow.js, tensorflowjs-converter | 1,758,194,802 |
se_73081631 | stackoverflow | MACHINE_LEARNING | Excel Product Categorization in Python | Excel Product Categorization in Python
I'm trying to break up Product names into categories, for example if the product is "Demi Baguette", the category should be "Baguette" and sub category "Demi". I have looked at NLP articles but nothing seems to be what I need as they all focus on sentences and text.
I've seen oth... | https://stackoverflow.com/questions/73081631/excel-product-categorization-in-python | python, excel, machine-learning, data-science, data-analysis | 1,658,498,655 |
se_69530476 | stackoverflow | MACHINE_LEARNING | How to use soft labels in computer vision with PyTorch? | How to use soft labels in computer vision with PyTorch?
I have an image dataset with soft labels (i.e. the images don't belong to a single class, but rather I have a probability distribution saying that there's a 66% chance this image belong in one class and 33% chance it belongs in some other class).
I am struggling ... | https://stackoverflow.com/questions/69530476/how-to-use-soft-labels-in-computer-vision-with-pytorch | machine-learning, pytorch, neural-network, computer-vision, classification | 1,633,974,485 |
se_2484761 | stackoverflow | MACHINE_LEARNING | Multivariate Decision Tree learner | Multivariate Decision Tree learner
A lot univariate decision tree learner implementations (C4.5 etc) do exist, but does actually someone know multivariate decision tree learner algorithms? | https://stackoverflow.com/questions/2484761/multivariate-decision-tree-learner | machine-learning, pattern-recognition, decision-tree | 1,269,118,869 |
se_65701317 | stackoverflow | MACHINE_LEARNING | How to visualise and choose parameters spectrogram tensorflow | How to visualise and choose parameters spectrogram tensorflow
I have audio of 3 min duration ,I have Waveform shape: (2880000,) so what should be the value for frame_length and frame_step
spectrogram = tf.signal.stft(waveform, frame_length=?, frame_step=?)
spectrogram = tf.abs(spectrogram)
On choosing frame_length=... | https://stackoverflow.com/questions/65701317/how-to-visualise-and-choose-parameters-spectrogram-tensorflow | python, tensorflow, machine-learning, data-science, tensorflow2.0 | 1,610,538,305 |
se_78327535 | stackoverflow | MACHINE_LEARNING | scikit-learn 1.1.3. import cannot import name 'METRIC_MAPPING64' in python | scikit-learn 1.1.3. import cannot import name 'METRIC_MAPPING64' in python
I am trying to import linear_model from scikit-learn into my python code in vscode and get an unexpected error message.
import sklearn
from sklearn import linear_model
the error:
cannot import name 'METRIC_MAPPING64' from 'sklearn.metr... | https://stackoverflow.com/questions/78327535/scikit-learn-1-1-3-import-cannot-import-name-metric-mapping64-in-python | python, machine-learning, scikit-learn, linear-regression, scikits | 1,713,174,873 |
se_75945585 | stackoverflow | MACHINE_LEARNING | Merge the duplicate rows on multiple column? | Merge the duplicate rows on multiple column?
Sample Input:
DID FIRST NAME MIDDLE NAME LAST NAME STREET CITY STATE ZIP DOB PIN TIN
CRA0012347129 John JR Nan Doe Nan Nan Nan 1124.0 02-07-2020 12345678998765432 268869162.0
CRA0012347152 John Nan ... | https://stackoverflow.com/questions/75945585/merge-the-duplicate-rows-on-multiple-column | python, pandas, machine-learning, data-science, data-manipulation | 1,680,751,627 |
se_77737679 | stackoverflow | MACHINE_LEARNING | Create a multilingual chatbot | Create a multilingual chatbot
I created a chatbot using PyTorch an I want to make it support the French language. Note that I want to train the chatbot so that it can respond to technical questions.
One of the things that came to my mind is to use translation APIs but since the chatbot is expected to respond to techni... | https://stackoverflow.com/questions/77737679/create-a-multilingual-chatbot | python, machine-learning, pytorch, nlp, chatbot | 1,703,977,527 |
se_58101126 | stackoverflow | MACHINE_LEARNING | Using Scikit-Learn OneHotEncoder with a Pandas DataFrame | Using Scikit-Learn OneHotEncoder with a Pandas DataFrame
I'm trying to replace a column within a Pandas DataFrame containing strings into a one-hot encoded equivalent using Scikit-Learn's OneHotEncoder. My code below doesn't work:
from sklearn.preprocessing import OneHotEncoder
# data is a Pandas DataFrame
jobs_enco... | https://stackoverflow.com/questions/58101126/using-scikit-learn-onehotencoder-with-a-pandas-dataframe | python, pandas, machine-learning, scikit-learn, one-hot-encoding | 1,569,422,836 |
se_75810246 | stackoverflow | MACHINE_LEARNING | How to get all hugging face models list using python? | How to get all hugging face models list using python?
Is there any way to get list of models available on Hugging Face? E.g. for Automatic Speech Recognition (ASR). | https://stackoverflow.com/questions/75810246/how-to-get-all-hugging-face-models-list-using-python | python, machine-learning, huggingface-transformers, automatic-speech-recognition | 1,679,476,128 |
se_79740028 | stackoverflow | MACHINE_LEARNING | Freeze, then unfreeze gradients of a trained parameter in PyTorch does not work | Freeze, then unfreeze gradients of a trained parameter in PyTorch does not work
Let's say I have a parameter which is a p-shaped vector and I wish to train it in PyTorch such that: for some iterations, only the first k <= p elements of this vector were trained whereas the rest were frozen; for some other iterations, t... | https://stackoverflow.com/questions/79740028/freeze-then-unfreeze-gradients-of-a-trained-parameter-in-pytorch-does-not-work | python, machine-learning, pytorch, gradient-descent | 1,755,612,558 |
se_72016494 | stackoverflow | MACHINE_LEARNING | Creating a image dataset | Creating a image dataset
I have a folder with 38000 images and I'm trying to create a dataset from them to use in a Convolutional LSTM, which supports input in the format of a 5d array (B,T,W,H,C) where B is the number of samples, T is the size of the samples and the rest of the array are the image properties.
So far ... | https://stackoverflow.com/questions/72016494/creating-a-image-dataset | python, arrays, machine-learning, deep-learning, data-science | 1,650,986,397 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.