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_79226790
stackoverflow
MACHINE_LEARNING
Passing request context from FastAPI to Microsoft Semantic Kernel Plugin for OpenAI Integration
Passing request context from FastAPI to Microsoft Semantic Kernel Plugin for OpenAI Integration I am integrating Microsoft Semantic Kernel with OpenAI in my FastAPI application. I have a chat/ endpoint where I receive a session_id from the request, and I need to pass this session_id to a plugin along with the openai_c...
https://stackoverflow.com/questions/79226790/passing-request-context-from-fastapi-to-microsoft-semantic-kernel-plugin-for-ope
python, machine-learning, rag, semantic-kernel, semantic-kernel-plugins
1,732,625,494
se_79695214
stackoverflow
MACHINE_LEARNING
i want to custmize data.yaml file for train yolo11x.pt model by ultralytics?
i want to custmize data.yaml file for train yolo11x.pt model by ultralytics? class_id x_center y_center width height behavior_id eg.txt file data 6 0.260313 0.739167 0.131875 0.038333 1 6 0.580313 0.821250 0.290625 0.245834 0 6 0.821562 0.775416 0.230625 0.179167 0 6 0.914062 0.800416 0.170625 0.215833 1 data.yaml fi...
https://stackoverflow.com/questions/79695214/i-want-to-custmize-data-yaml-file-for-train-yolo11x-pt-model-by-ultralytics
machine-learning, deep-learning, yolov8, ultralytics
1,752,044,923
se_79557313
stackoverflow
MACHINE_LEARNING
No attention output in jinaai/jina-embeddings-v3 embedding model
No attention output in jinaai/jina-embeddings-v3 embedding model When I use this model like so - from transformers import AutoModel, AutoTokenizer model_id = "jinaai/jina-embeddings-v3" tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True) model = AutoModel.from_pretrained(model_id, trust_remote...
https://stackoverflow.com/questions/79557313/no-attention-output-in-jinaai-jina-embeddings-v3-embedding-model
machine-learning, nlp, artificial-intelligence, huggingface-transformers, sentence-transformers
1,743,874,155
se_71101956
stackoverflow
MACHINE_LEARNING
fitting on X_train and y_train
fitting on X_train and y_train For somebody super beginner how can one remember what to pass into model.fit? I have to keep on looking up that we are supposed to pass X_train, y_train. But I guess I don't fully understand why we don't pass in something else such as: X_train, y_test. Thank you! Josh
https://stackoverflow.com/questions/71101956/fitting-on-x-train-and-y-train
python, machine-learning, data-science
1,644,764,900
se_79700340
stackoverflow
MACHINE_LEARNING
RendezvousTimeoutError when using torchrun
RendezvousTimeoutError when using torchrun I am attempting to do training with multiple GPUs on pytorch, but am experiencing a RendezvousTimeoutError when doing so. I have looked at the relevant documentation and forums, but have not solved the issue. Here are relevant details of what I am attempting: I am trying to u...
https://stackoverflow.com/questions/79700340/rendezvoustimeouterror-when-using-torchrun
machine-learning, pytorch
1,752,452,893
se_44244711
stackoverflow
MACHINE_LEARNING
Imbalanced data: undersampling or oversampling?
Imbalanced data: undersampling or oversampling? I have binary classification problem where one class represented 99.1% of all observations (210 000). As a strategy to deal with the imbalanced data, I choose sampling techniques. But I don't know what to do: undersampling my majority class or oversampling the less repre...
https://stackoverflow.com/questions/44244711/imbalanced-data-undersampling-or-oversampling
python, machine-learning, classification, random-forest, supervised-learning
1,496,067,477
se_76502318
stackoverflow
MACHINE_LEARNING
XGBoost: How to use a DMatrix with scikit-learn interface .fit
XGBoost: How to use a DMatrix with scikit-learn interface .fit I am currently using the scikit-learn interface for XGBoost in my project. However, I have an extremely large dataset, and each time I call .fit, the data is converted to a DMatrix, which is very time-consuming, especially when using a GPU that trains rela...
https://stackoverflow.com/questions/76502318/xgboost-how-to-use-a-dmatrix-with-scikit-learn-interface-fit
python, machine-learning, artificial-intelligence, xgboost
1,687,118,185
se_53580088
stackoverflow
MACHINE_LEARNING
Calculate the output size in convolution layer
Calculate the output size in convolution layer How do I calculate the output size in a convolution layer? For example, I have a 2D convolution layer that takes a 3x128x128 input and has 40 filters of size 5x5.
https://stackoverflow.com/questions/53580088/calculate-the-output-size-in-convolution-layer
machine-learning, deep-learning, pytorch, conv-neural-network
1,543,752,568
se_79704525
stackoverflow
MACHINE_LEARNING
XGBClassifier different performance on different OS
XGBClassifier different performance on different OS XGBClassifier( tree_method='hist', objective='multi:softprob', num_class=3, n_estimators=50, max_depth=5, learning_rate=0.1, eval_metric='mlogloss', subsample=1.0, colsample_bytree=1.0, r...
https://stackoverflow.com/questions/79704525/xgbclassifier-different-performance-on-different-os
python, machine-learning, xgboost
1,752,741,571
se_60770707
stackoverflow
MACHINE_LEARNING
Is there an R function to optimize the PRG AUC (area under the precision-recall-gain curve)?
Is there an R function to optimize the PRG AUC (area under the precision-recall-gain curve)? To optimize the PR AUC (area under the precision-recall curve) in Caret, the prSummary function can be plugged into the trainControl function. Is there a similar way to optimize the PRG AUC (area under the precision-recall-ga...
https://stackoverflow.com/questions/60770707/is-there-an-r-function-to-optimize-the-prg-auc-area-under-the-precision-recall
r, machine-learning, r-caret, precision-recall
1,584,692,737
se_79329352
stackoverflow
MACHINE_LEARNING
ModuleNotFoundError: No module named 'llama_index.text_splitter'
ModuleNotFoundError: No module named 'llama_index.text_splitter' I used this to import from llama_index.text_splitter import SentenceSplitter and my python version - 3.11.5 and llama_index version - 0.12.8 but give this error ModuleNotFoundError: No module named 'llama_index.text_splitter How to solve this? ...
https://stackoverflow.com/questions/79329352/modulenotfounderror-no-module-named-llama-index-text-splitter
python, machine-learning, llama-index
1,736,014,105
se_69539538
stackoverflow
MACHINE_LEARNING
ERROR: vars() argument must have __dict__ attribute when trying to use trainer.train() on custom HF dataset?
ERROR: vars() argument must have __dict__ attribute when trying to use trainer.train() on custom HF dataset? I have the following model that I am trying to fine-tune (CLIP_ViT + classification head). Here’s my model definition: class CLIPNN(nn.Module): def __init__(self, num_labels, pretrained_name="openai/clip-v...
https://stackoverflow.com/questions/69539538/error-vars-argument-must-have-dict-attribute-when-trying-to-use-trainer-t
dictionary, machine-learning, pytorch, dataset, huggingface-transformers
1,634,037,123
se_79696178
stackoverflow
MACHINE_LEARNING
How do I train an object detection model using Torchvision's pre-trained models?
How do I train an object detection model using Torchvision's pre-trained models? I read the torchvision API documentation using pre-trained models for object detection. This is an example they have included: from torchvision.io.image import decode_image from torchvision.models.detection import fasterrcnn_resnet50_...
https://stackoverflow.com/questions/79696178/how-do-i-train-an-object-detection-model-using-torchvisions-pre-trained-models
python, machine-learning, object-detection, torchvision, pre-trained-model
1,752,090,392
se_79701573
stackoverflow
MACHINE_LEARNING
Doing inference for Nvidia's onnx model (PeopleNet)
Doing inference for Nvidia&#39;s onnx model (PeopleNet) I am implementing PeopleNet onnx model at my cpp application. The following are preprocessing and postprocessing functions. void preprocessGpuBatch(const std::vector<cv::cuda::GpuMat>& gpu_frames, cv::Mat& blob, cv:...
https://stackoverflow.com/questions/79701573/doing-inference-for-nvidias-onnx-model-peoplenet
c++, opencv, machine-learning, nvidia, inference-engine
1,752,555,687
se_59134865
stackoverflow
MACHINE_LEARNING
Tensorflow : How to optimize trained model size?
Tensorflow : How to optimize trained model size? I am building a simple TensorFlow model where I am fine-tuning the Elmo model using Tf-Hub module. I am getting a good result but the problem is when I am saving the model, It's very large where the same time I built the same model in Keras and it's in Kb. My input da...
https://stackoverflow.com/questions/59134865/tensorflow-how-to-optimize-trained-model-size
python, tensorflow, machine-learning, keras, deep-learning
1,575,274,424
se_61995568
stackoverflow
MACHINE_LEARNING
Equation of the hyperplane for machine learning
Equation of the hyperplane for machine learning I'm doing a ML MOOC through Edx(archived) and am trying to figure out what theta is for hyperplanes. So the equation is When Theta = [-1, 1.5] and Theta_0 = [3], we have: How do I interpret theta? I thought it was [change in x, change in y], but the line in the i...
https://stackoverflow.com/questions/61995568/equation-of-the-hyperplane-for-machine-learning
machine-learning, classification, linear-algebra
1,590,379,498
se_79609185
stackoverflow
MACHINE_LEARNING
Gradient descent in linear regression causing parameter to be -infinity
Gradient descent in linear regression causing parameter to be -infinity I'm trying to implement a simple linear regression algo, and for that I've written two functions: Cost function Gradient descent Cost function appears to work normally, as in it's not giving me unusually large or unusually small numbers. Whereas...
https://stackoverflow.com/questions/79609185/gradient-descent-in-linear-regression-causing-parameter-to-be-infinity
python, machine-learning, linear-regression
1,746,551,790
se_76703386
stackoverflow
MACHINE_LEARNING
How to Handle Imbalanced Data in a Classification Problem?
How to Handle Imbalanced Data in a Classification Problem? I am working on a binary classification problem using machine learning, where my target classes are imbalanced. I have approximately 80% of data points in Class A and only 20% in Class B. I have tried using various classifiers like Random Forest and Logistic R...
https://stackoverflow.com/questions/76703386/how-to-handle-imbalanced-data-in-a-classification-problem
machine-learning, scikit-learn, classification, imbalanced-data
1,689,588,356
se_29980037
stackoverflow
MACHINE_LEARNING
Tokenizing text with scikit-learn
Tokenizing text with scikit-learn I have the following code to extract features from a set of files (folder name is the category name) for text classification. import sklearn.datasets from sklearn.feature_extraction.text import TfidfVectorizer train = sklearn.datasets.load_files('./train', description=None, categori...
https://stackoverflow.com/questions/29980037/tokenizing-text-with-scikit-learn
python, machine-learning, scikit-learn, text-classification, scikits
1,430,440,749
se_79696941
stackoverflow
MACHINE_LEARNING
Custom TFJS layer no trainable variables found during training
Custom TFJS layer no trainable variables found during training I made a custom layer in TensorFlow.js that consists of sublayers but not weights of its own. Here is a simplified example import * as tf from "@tensorflow/tfjs"; import { LayerArgs } from "@tensorflow/tfjs-layers/dist/engine/topology"; import { Kwargs } f...
https://stackoverflow.com/questions/79696941/custom-tfjs-layer-no-trainable-variables-found-during-training
tensorflow, machine-learning, tensorflow.js
1,752,145,110
se_79695574
stackoverflow
MACHINE_LEARNING
unable to load a model with Keras
unable to load a model with Keras I wanted to create a speech recognition application and I was following this tutorial : Transformer ASR. After training it for 1 epoch, I saved the model and it saved successfully: model.save("model_1_epoch.keras") But when I tried to load the model again: custom_objects = { 'Tok...
https://stackoverflow.com/questions/79695574/unable-to-load-a-model-with-keras
python, tensorflow, machine-learning, keras, recurrent-neural-network
1,752,062,034
se_76098441
stackoverflow
MACHINE_LEARNING
Detectron2 pre-trained model using layoutparser in Docker container Error: Checkpoint Not Found
Detectron2 pre-trained model using layoutparser in Docker container Error: Checkpoint Not Found following is my Dockerfile. FROM python:3.9 RUN apt-get clean && apt-get update pip install --upgrade pip RUN pip install layoutparser RUN pip install "layoutparser[ocr]" RUN pip install pytesseract RUN pip install p...
https://stackoverflow.com/questions/76098441/detectron2-pre-trained-model-using-layoutparser-in-docker-container-error-check
python, machine-learning, ocr, detectron, layout-parser
1,682,406,460
se_79693338
stackoverflow
MACHINE_LEARNING
HDBSCAN Interpretation and Logic
HDBSCAN Interpretation and Logic I have made a basic HDBSCAN model (picture output below) but I need to figure out names for the individual clusters. Is there a way I can get something like a decision tree or the parameters for each cluster as that is what I need to classify these clusters properly. For example: cat...
https://stackoverflow.com/questions/79693338/hdbscan-interpretation-and-logic
python, machine-learning, artificial-intelligence, decision-tree, hdbscan
1,751,917,233
se_69970319
stackoverflow
MACHINE_LEARNING
ValueError: Exception encountered when calling layer &quot;sequential_5&quot; (type Sequential)
ValueError: Exception encountered when calling layer &quot;sequential_5&quot; (type Sequential) I am following this course : TensorFlow Developer Certificate in 2022: Zero to Mastery This is the following code : # Set random seed tf.random.set_seed(42) # Create some regression data X_regression = np.arange(0, 1000, ...
https://stackoverflow.com/questions/69970319/valueerror-exception-encountered-when-calling-layer-sequential-5-type-sequen
python, tensorflow, machine-learning, keras, deep-learning
1,636,958,653
se_74968093
stackoverflow
MACHINE_LEARNING
Most efficient way to use a large image dataset with Google Colab -- getting drive timeout + memory errors
Most efficient way to use a large image dataset with Google Colab -- getting drive timeout + memory errors I'm using Google Colab to a classifier in PyTorch and my training dataset has ~30,000 JPEG images which I have stored in my Google Drive. Efficiently using this large amount of data with Colab and Drive has been ...
https://stackoverflow.com/questions/74968093/most-efficient-way-to-use-a-large-image-dataset-with-google-colab-getting-dri
python, machine-learning, deep-learning, pytorch, google-colaboratory
1,672,471,083
se_78493742
stackoverflow
MACHINE_LEARNING
Feedback manager requires a model with a single signature inference
Feedback manager requires a model with a single signature inference i have been encountering this error while trying to run a machine running model, the model is supposed to power a driver drowsiness detection project W0000 00:00:1715924294.765512 2256 inference_feedback_manager.cc:114] Feedback manager requires a...
https://stackoverflow.com/questions/78493742/feedback-manager-requires-a-model-with-a-single-signature-inference
machine-learning, keras, conv-neural-network, tf.keras
1,715,925,590
se_22137953
stackoverflow
MACHINE_LEARNING
Find coordinate of eye corner using difference in color
Find coordinate of eye corner using difference in color I am using opencv 2.4.2 and c++. I have a face image. From left of the picture, I want, with the least complexity, to determine the coordinate of one corner of the eye. My program will be as follows: Face image input Scan image from top until it encounters a ki...
https://stackoverflow.com/questions/22137953/find-coordinate-of-eye-corner-using-difference-in-color
c++, opencv, machine-learning, image-processing, computer-vision
1,393,815,753
se_79541286
stackoverflow
MACHINE_LEARNING
Different Feature Selection Results Between Local (Ubuntu VM) and Databricks Using sklearn&#39;s SequentialFeatureSelector
Different Feature Selection Results Between Local (Ubuntu VM) and Databricks Using sklearn&#39;s SequentialFeatureSelector I am migrating from running my machine learning pipeline in VS Code with Ubuntu on a VM into Databricks. When I test the same dataset using the same code, I get different selected features from Se...
https://stackoverflow.com/questions/79541286/different-feature-selection-results-between-local-ubuntu-vm-and-databricks-usi
python, machine-learning, scikit-learn, databricks, feature-selection
1,743,160,974
se_79689480
stackoverflow
MACHINE_LEARNING
How to create a speech recognition model from scratch in Python
How to create a speech recognition model from scratch in Python I am looking to create a speech recognition model from scratch without using an existing model. I have already used Whisper successfully but I need to create a model that I can train myself whose performance can be measured against whisper. Is there any r...
https://stackoverflow.com/questions/79689480/how-to-create-a-speech-recognition-model-from-scratch-in-python
python, machine-learning, speech-recognition, speech-to-text
1,751,578,827
se_79250549
stackoverflow
MACHINE_LEARNING
Python Error: rv_generic.interval() missing 1 required positional argument: &#39;confidence&#39;
Python Error: rv_generic.interval() missing 1 required positional argument: &#39;confidence&#39; I have been trying to run the below code to calculate upper and lower confidence intervals using t distribution, but it keeps throwing the error in the subject. The piece of code is as below: import pandas as pd import num...
https://stackoverflow.com/questions/79250549/python-error-rv-generic-interval-missing-1-required-positional-argument-con
python, machine-learning, scipy, distribution
1,733,304,733
se_76626629
stackoverflow
MACHINE_LEARNING
SKlearn classifier&#39;s predict_proba doesn&#39;t sum to 1
SKlearn classifier&#39;s predict_proba doesn&#39;t sum to 1 I have a classifier (in this case, it is the sklearn.MLPClassifier), with which I'm trying to perform classification into one of 18 classes. The class is thus multi-class, not multi-label. I'm trying to predict only a single class. I have my training data: X...
https://stackoverflow.com/questions/76626629/sklearn-classifiers-predict-proba-doesnt-sum-to-1
python, machine-learning, scikit-learn
1,688,629,888
se_79619561
stackoverflow
MACHINE_LEARNING
Tensorflow: Using Masking in Combination with Concatenate Layer
Tensorflow: Using Masking in Combination with Concatenate Layer I am trying to use masking in combination with a concatenation layer. So I have one input (jet), that is padded and masked. I want to concatenate to it another input (lepton) which is passed through a RepertVector()-layer. After the concatenation, an LSTM...
https://stackoverflow.com/questions/79619561/tensorflow-using-masking-in-combination-with-concatenate-layer
python, tensorflow, machine-learning
1,747,136,427
se_44495698
stackoverflow
MACHINE_LEARNING
Keras: Difference between Kernel and Activity regularizers
Keras: Difference between Kernel and Activity regularizers I have noticed that weight_regularizer is no more available in Keras and that, in its place, there are activity and kernel regularizer. I would like to know: What are the main differences between kernel and activity regularizers? Could I use activity_regula...
https://stackoverflow.com/questions/44495698/keras-difference-between-kernel-and-activity-regularizers
machine-learning, keras, keras-layer
1,497,258,994
se_79687024
stackoverflow
MACHINE_LEARNING
Neural Network built from scratch using numpy isn&#39;t learning
Neural Network built from scratch using numpy isn&#39;t learning I'm building a neural network from scratch using only Python and numpy, It's meant for classifying the MNIST data set, I got everything to work but the network isn't really learning, at epoch 0 it's accuracy is about 12% after 20 epochs, it increases to ...
https://stackoverflow.com/questions/79687024/neural-network-built-from-scratch-using-numpy-isnt-learning
python, numpy, machine-learning, deep-learning, neural-network
1,751,441,876
se_75524850
stackoverflow
MACHINE_LEARNING
Is there any other way to push large pickle files (bigger than 100 MB) to GitHub repo other than Git LFS? (For my ML project)
Is there any other way to push large pickle files (bigger than 100 MB) to GitHub repo other than Git LFS? (For my ML project) I am a beginner in ML. As per my understanding, we generally store our trained model in a pickle file. (If we are working in Python). However, GitHub has a file size upload limit of 100 MB. For...
https://stackoverflow.com/questions/75524850/is-there-any-other-way-to-push-large-pickle-files-bigger-than-100-mb-to-github
python, github, machine-learning, pickle, streamlit
1,677,006,224
se_79605098
stackoverflow
MACHINE_LEARNING
Cross-validation with PyTorch
Cross-validation with PyTorch I am trying to implement cross-validation with PyTorch; I am used to Sklearn's cross_validation function which is much simpler to use (most likely because I did not fully understand what was happening under the hood); I was hoping someone could advise if first of all this looks correct an...
https://stackoverflow.com/questions/79605098/cross-validation-with-pytorch
python, machine-learning, pytorch, cross-validation
1,746,305,389
se_29708096
stackoverflow
MACHINE_LEARNING
Selection of training data for SVM
Selection of training data for SVM I know similar questions have been posed a few times here, but I have another point that is not clear to me. I have 1098 images that I am trying to classify. As a general rule (from what I have read), the split for the data is 80/20 - Train/Test of the 80% Training data 80/20 or...
https://stackoverflow.com/questions/29708096/selection-of-training-data-for-svm
machine-learning
1,429,299,856
se_79685782
stackoverflow
MACHINE_LEARNING
softmax functions always outputing garbage numbers that don&#39;t add up to one
softmax functions always outputing garbage numbers that don&#39;t add up to one I am creating a simple NN from scratch that can classify MNIST digits, It only has 1 hidden layer:- Loading the data: import numpy as np import matplotlib.pyplot as plt from keras.datasets import mnist (x_train, y_train), (x_test, y_test)...
https://stackoverflow.com/questions/79685782/softmax-functions-always-outputing-garbage-numbers-that-dont-add-up-to-one
python, numpy, machine-learning, deep-learning, artificial-intelligence
1,751,360,619
se_79396213
stackoverflow
MACHINE_LEARNING
Using an input layer as a weight to a second input layer
Using an input layer as a weight to a second input layer I have two inputs structures where each feature in the second input uses the values of input 1 to calculate each of the features. Then the second input layer is then connected to the hidden layers and finally to a single output layer. So lets say I have in the f...
https://stackoverflow.com/questions/79396213/using-an-input-layer-as-a-weight-to-a-second-input-layer
tensorflow, machine-learning, keras, neural-network
1,738,142,254
se_27363129
stackoverflow
MACHINE_LEARNING
How to programmatically learn regexes?
How to programmatically learn regexes? My question is a continuation of this one. Basically, I have a table of words like so: HAT18178_890909.098070313.1 HAT18178_890909.098070313.2 HAT18178_890909.143412462.1 HAT18178_890909.143412462.2 For my purposes, I do not need the terminal .1 or .2 for this set of names. ...
https://stackoverflow.com/questions/27363129/how-to-programmatically-learn-regexes
regex, machine-learning
1,418,058,455
se_79635390
stackoverflow
MACHINE_LEARNING
PyTorch and Streamlit interaction error: &quot;Tried to instantiate class &#39;__path__._path&#39;, but it does not exist!&quot;
PyTorch and Streamlit interaction error: &quot;Tried to instantiate class &#39;__path__._path&#39;, but it does not exist!&quot; I'm developing an application that uses Streamlit and PyTorch (through the huggingface transformers library) to analyze system requirements with a language model. However, I'm encountering t...
https://stackoverflow.com/questions/79635390/pytorch-and-streamlit-interaction-error-tried-to-instantiate-class-path
python, machine-learning, pytorch, huggingface-transformers, streamlit
1,747,998,374
se_79681038
stackoverflow
MACHINE_LEARNING
Language Model Evaluation with Custom Task - Hugging Face Lighteval
Language Model Evaluation with Custom Task - Hugging Face Lighteval I am creating a benchmark to evaluate a language model. First, I generated the dataset that I'm gonna prompt the Language model with. Subsequently, I tried to evaluate any tiny language model just to get a end-to-end small functioning app. I followed ...
https://stackoverflow.com/questions/79681038/language-model-evaluation-with-custom-task-hugging-face-lighteval
python, machine-learning, nlp, large-language-model, huggingface
1,750,964,642
se_79328497
stackoverflow
MACHINE_LEARNING
Why do I get AttributeError: module &#39;tensorflow.keras.backend&#39; has no attribute &#39;placeholder&#39; when using ART&#39;s KerasClassifier with TensorFlow 2.x?
Why do I get AttributeError: module &#39;tensorflow.keras.backend&#39; has no attribute &#39;placeholder&#39; when using ART&#39;s KerasClassifier with TensorFlow 2.x? I’m trying to use the Adversarial Robustness Toolbox (ART) with a simple Keras model in TensorFlow 2.x, but I’m encountering the following error: Attri...
https://stackoverflow.com/questions/79328497/why-do-i-get-attributeerror-module-tensorflow-keras-backend-has-no-attribute
python, tensorflow, machine-learning, tf.keras, adversarial-attack
1,735,980,399
se_61223462
stackoverflow
MACHINE_LEARNING
How does Monte Carlo Exploring Starts work?
How does Monte Carlo Exploring Starts work? Flow Chart I'm having trouble understanding the 4th and 5th step in the flowchart. Am I right to say that the Q value of a particular state and action is the same as the state-action pair value of that same state and action? For the 4th step, does 'calculate return for a st...
https://stackoverflow.com/questions/61223462/how-does-monte-carlo-exploring-starts-work
machine-learning, reinforcement-learning, montecarlo, q-learning
1,586,935,608
se_59149138
stackoverflow
MACHINE_LEARNING
How do you invert a tensor of boolean values in Pytorch?
How do you invert a tensor of boolean values in Pytorch? With NumPy, you can do it with np.invert(array), but there's no invert function in Pytorch. Let's say I have a 2D tensor of boolean values: import torch ts = torch.rand((10, 4)) < .5 tensor([[ True, True, False, True], [ True, True, True, True], ...
https://stackoverflow.com/questions/59149138/how-do-you-invert-a-tensor-of-boolean-values-in-pytorch
python, python-3.x, machine-learning, deep-learning, pytorch
1,575,338,009
se_54244727
stackoverflow
MACHINE_LEARNING
Are 3-way interactions effects possible with visreg package?
Are 3-way interactions effects possible with visreg package? I'm trying to use the visreg package for 3-way interactions. (I am able to fit 2-way interactions as shown below with my R reproducible code). I am wondering if it is possible to plot 3-way interactions using visreg: "year" ; "age"; "education". Using ggeff...
https://stackoverflow.com/questions/54244727/are-3-way-interactions-effects-possible-with-visreg-package
r, machine-learning
1,547,761,391
se_78672059
stackoverflow
MACHINE_LEARNING
Problems with selecting OptunaSearchCV pipeline parameters
Problems with selecting OptunaSearchCV pipeline parameters I have a code with which I iterate over the hyperparameters of both the model itself and the entire pipeline preprocessor = ColumnTransformer( [ ('OneHotEncoder', OneHotEncoder(drop='if_binary', sparse_output=False), binary_cols), ...
https://stackoverflow.com/questions/78672059/problems-with-selecting-optunasearchcv-pipeline-parameters
machine-learning, scikit-learn, gridsearchcv, hyperopt
1,719,400,466
se_7474508
stackoverflow
MACHINE_LEARNING
Random projection algorithm pseudo code
Random projection algorithm pseudo code I am trying to apply Random Projections method on a very sparse dataset. I found papers and tutorials about Johnson Lindenstrauss method, but every one of them is full of equations which makes no meaningful explanation to me. For example, this document on Johnson-Lindenstrauss ...
https://stackoverflow.com/questions/7474508/random-projection-algorithm-pseudo-code
algorithm, machine-learning, multidimensional-array
1,316,451,304
se_75244523
stackoverflow
MACHINE_LEARNING
Python compare images of, piece of, clothing (identification)
Python compare images of, piece of, clothing (identification) As an example I have two pictures with a particular type of clothing of a certain brand. I can download a lot of different images of this same piece, and color, of clothing I want to create a model which can recognize the item based on a picture. I tried t...
https://stackoverflow.com/questions/75244523/python-compare-images-of-piece-of-clothing-identification
python, machine-learning, artificial-intelligence
1,674,726,801
se_56134072
stackoverflow
MACHINE_LEARNING
Random forest getting 100% score since feature selection
Random forest getting 100% score since feature selection I have been working on a dataset. I have followed this process to predict churn: Encoded and standardised data Run random forest Got a model score of 0.63 Analysed feature importances Ran model for reduced feature set Got a model score of 1.0 in the revised mod...
https://stackoverflow.com/questions/56134072/random-forest-getting-100-score-since-feature-selection
python, machine-learning, scikit-learn
1,557,848,201
se_18820814
stackoverflow
MACHINE_LEARNING
Trajectory Clustering: Which Clustering Method?
Trajectory Clustering: Which Clustering Method? As a newbie in Machine Learning, I have a set of trajectories that may be of different lengths. I wish to cluster them, because some of them are actually the same path and they just SEEM different due to the noise. In addition, not all of them are of the same lengths. ...
https://stackoverflow.com/questions/18820814/trajectory-clustering-which-clustering-method
algorithm, machine-learning, cluster-analysis, data-mining
1,379,308,724
se_74600792
stackoverflow
MACHINE_LEARNING
mlr3 properly setting up parallelization
mlr3 properly setting up parallelization Say I have a machine with 32 cores and want to execute a nested CV of 5 outer folds and 3 inner folds as efficiently as possible. On the outer fold, I benchmark two or more learners, on the inner fold I tune hyperparams for one or n-k of the learners. How to set batch_size and ...
https://stackoverflow.com/questions/74600792/mlr3-properly-setting-up-parallelization
r, machine-learning, mlr3
1,669,639,479
se_79626612
stackoverflow
MACHINE_LEARNING
The docling_core library (with smoldocling) fails to export to markdown
The docling_core library (with smoldocling) fails to export to markdown I'm trying to extract a table from a jpeg image using Smoldocling. The result is great in 'doctags' format, but I can't export it : I don't have any warning nor error message, only an empty output. I followed the instructions here : https://huggin...
https://stackoverflow.com/questions/79626612/the-docling-core-library-with-smoldocling-fails-to-export-to-markdown
python, machine-learning, ocr, huggingface-transformers, onnxruntime
1,747,490,359
se_79676654
stackoverflow
MACHINE_LEARNING
Overthreading in Multiprocessing for ML models
Overthreading in Multiprocessing for ML models The problem I am running machine learning models in parallel using multiprocessing. When using models with parameters stating the number of threads used- num_threads, num_jobs, etc. - the code works well. Recently, I have had to use models that do not have this paramete...
https://stackoverflow.com/questions/79676654/overthreading-in-multiprocessing-for-ml-models
python, machine-learning, multiprocessing
1,750,705,795
se_72262608
stackoverflow
MACHINE_LEARNING
Steps for Machine Learning in Pytorch
Steps for Machine Learning in Pytorch When we define our model in PyTorch. We run through different #epochs. I want to know that in the iteration of epochs. What is the difference between the two following snippets of code in which the order is different? These two snippet versions are: I found over tutorials The cod...
https://stackoverflow.com/questions/72262608/steps-for-machine-learning-in-pytorch
python, machine-learning, pytorch
1,652,718,861
se_79672782
stackoverflow
MACHINE_LEARNING
What&#39;s the context limit for the Foundation Models Framework?
What&#39;s the context limit for the Foundation Models Framework? When using the foundation models framework in iOS 26, what's the context length limit for message inputs?
https://stackoverflow.com/questions/79672782/whats-the-context-limit-for-the-foundation-models-framework
ios, machine-learning, artificial-intelligence
1,750,382,479
se_79431447
stackoverflow
MACHINE_LEARNING
Gradient Lost When Constructing a Matrix in Mitsuba 3
Gradient Lost When Constructing a Matrix in Mitsuba 3 I am trying to optimize the absolute scale of an area light in Mitsuba 3. I'm doing a simple toy example where I start with a scene like this: And my target image is like this: My loss is simply MSE between the two images. I was able to get this to work by using ...
https://stackoverflow.com/questions/79431447/gradient-lost-when-constructing-a-matrix-in-mitsuba-3
python, machine-learning, graphics, 3d, mitsuba-renderer
1,739,311,815
se_78037608
stackoverflow
MACHINE_LEARNING
Bee swarm plot with SHAP values for Random forest
Bee swarm plot with SHAP values for Random forest In the code provided below I am trying to visualize the results of SHAP values of a random forest model. The code is in R and it is shown below: # Load necessary libraries library(randomForest) library(DALEX) library(beeswarm) data <- my_database # Splitting the data...
https://stackoverflow.com/questions/78037608/bee-swarm-plot-with-shap-values-for-random-forest
r, machine-learning, random-forest, shap
1,708,557,330
se_77537786
stackoverflow
MACHINE_LEARNING
How do I use python version 3.7.1 in Kaggle
How do I use python version 3.7.1 in Kaggle I'm trying to train a tensorflow ML model scripted in python version 3.7.1. However the python version in kaggle is 3.10.2. Is there any method through which I can use a python 3.7 environment and is it possible to make it the default env?
https://stackoverflow.com/questions/77537786/how-do-i-use-python-version-3-7-1-in-kaggle
python, tensorflow, machine-learning, kaggle
1,700,750,978
se_49478637
stackoverflow
MACHINE_LEARNING
Differentiate between Handwritten and Machine printed texts
Differentiate between Handwritten and Machine printed texts Is there an effective way to detect and extract only the handwritten portions from a noisy image containing a mix of handwritten and machine-printed text? False Bug Your post is mostly images. Add additional details to explain the problem and expected result...
https://stackoverflow.com/questions/49478637/differentiate-between-handwritten-and-machine-printed-texts
machine-learning, image-processing, computer-vision, artificial-intelligence
1,521,998,289
se_79641155
stackoverflow
MACHINE_LEARNING
CNN predicts constant values for sparse amplitude regression — can&#39;t learn true pixel values
CNN predicts constant values for sparse amplitude regression — can&#39;t learn true pixel values I’m training a small CNN (code below) to predict sparse amplitude maps from binary masks. Input: 60×60 image with exactly 15 pixels set to 1, rest are 0. Target: Same size, 0 everywhere except those 15 pixels, which have...
https://stackoverflow.com/questions/79641155/cnn-predicts-constant-values-for-sparse-amplitude-regression-cant-learn-true
tensorflow, machine-learning, deep-learning, pytorch, conv-neural-network
1,748,377,627
se_75241536
stackoverflow
MACHINE_LEARNING
How to reduce high number of categorical variables from your dataset while training ML algorithm
How to reduce high number of categorical variables from your dataset while training ML algorithm I have a dataset that has a high number of categorical variables. For example, currently, the dataset has 37 categorical variables, now if I perform one hot encoding or any other encoding it will explode the number of colu...
https://stackoverflow.com/questions/75241536/how-to-reduce-high-number-of-categorical-variables-from-your-dataset-while-train
machine-learning, feature-selection, feature-engineering
1,674,696,262
se_79659212
stackoverflow
MACHINE_LEARNING
AttributeError: &#39;list&#39; object has no attribute &#39;to&#39; (samples are actually a Tensor)
AttributeError: &#39;list&#39; object has no attribute &#39;to&#39; (samples are actually a Tensor) EDIT: I'm training a model using a custom dataloader. The outcome from the dataloader is a list of tensors which cannot be processed by the main model because I have defined the sampler as samples = samples.to(device, n...
https://stackoverflow.com/questions/79659212/attributeerror-list-object-has-no-attribute-to-samples-are-actually-a-tens
python, machine-learning, pytorch, tensor, training-data
1,749,486,826
se_79666939
stackoverflow
MACHINE_LEARNING
How to improve object judgment accuracy in ASP.NET Core with CustomVision
How to improve object judgment accuracy in ASP.NET Core with CustomVision I'm using the CustomVision in an ASP.NET Core project to judge the objects. I trained the model with 20 dog and cat images, but the judgement result is useless. If I present an image, this model only replies as nearly 50%:50% ratio of cat to dog...
https://stackoverflow.com/questions/79666939/how-to-improve-object-judgment-accuracy-in-asp-net-core-with-customvision
azure, machine-learning, asp.net-core-mvc, artificial-intelligence, azure-cognitive-services
1,750,031,357
se_66992585
stackoverflow
MACHINE_LEARNING
How does one use Pytorch (+ cuda) with an A100 GPU?
How does one use Pytorch (+ cuda) with an A100 GPU? I was trying to use my current code with an A100 gpu but I get this error: ---> backend='nccl' /home/miranda9/miniconda3/envs/metalearningpy1.7.1c10.2/lib/python3.8/site-packages/torch/cuda/__init__.py:104: UserWarning: A100-SXM4-40GB with CUDA capability sm_80 is n...
https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu
python, machine-learning, neural-network, pytorch
1,617,822,268
se_71206455
stackoverflow
MACHINE_LEARNING
Wave2Lip usage and performance
Wave2Lip usage and performance The actual Question: Currently opencv is used to write video frames in a single file. Can you append the audio as well directly or is there some other way so you can create small video snippets which can than be broadcastet via rtp protocoll or broadcast it directly from python code? out...
https://stackoverflow.com/questions/71206455/wave2lip-usage-and-performance
python, opencv, machine-learning, deepface, deep-fake
1,645,447,088
se_42562146
stackoverflow
MACHINE_LEARNING
Classification report with Nested Cross Validation in SKlearn (Average/Individual values)
Classification report with Nested Cross Validation in SKlearn (Average/Individual values) Is it possible to get classification report from cross_val_score through some workaround? I'm using nested cross-validation and I can get various scores here for a model, however, I would like to see the classification report of ...
https://stackoverflow.com/questions/42562146/classification-report-with-nested-cross-validation-in-sklearn-average-individua
python, machine-learning, scikit-learn, classification, cross-validation
1,488,476,022
se_79287981
stackoverflow
MACHINE_LEARNING
Databricks MLFlow and MetaFlow integration
Databricks MLFlow and MetaFlow integration I am using Metaflow to orchestrate the training pipeline of a machine learning model and the scope is to combine Metaflow with the Databricks MLflow for monitoring of ML. The Metaflow pipeline is pasted below with the response and the Metaflow validation. The MLFLOW_TRACKING_...
https://stackoverflow.com/questions/79287981/databricks-mlflow-and-metaflow-integration
python-3.x, machine-learning, databricks, mlflow, netflix-metaflow
1,734,440,521
se_79618223
stackoverflow
MACHINE_LEARNING
PyTorch3D Build Fails with &quot;Cannot open include file: &#39;thrust/detail/cstdint.h&#39;&quot;
PyTorch3D Build Fails with &quot;Cannot open include file: &#39;thrust/detail/cstdint.h&#39;&quot; I'm trying to build PyTorch3D from source on Windows 11 using CUDA 12.8, but the build fails with the following error during the compilation of CUDA extensions: FAILED: D:/Project/3D_Reconstruction/src/pytorch3d/build/te...
https://stackoverflow.com/questions/79618223/pytorch3d-build-fails-with-cannot-open-include-file-thrust-detail-cstdint-h
python, machine-learning, deep-learning, pytorch, computer-vision
1,747,065,151
se_79098558
stackoverflow
MACHINE_LEARNING
Error when installing evaluate library in miniconda3
Error when installing evaluate library in miniconda3 I've just installed a fresh miniconda3 on my computer (ubuntu 22.04) by following the instructions from the official doc. My goal is to work with the hugging face's ecosystem with some langage models. But I get an error when installing the evaluate library. In my sh...
https://stackoverflow.com/questions/79098558/error-when-installing-evaluate-library-in-miniconda3
python, machine-learning, conda, huggingface, huggingface-evaluate
1,729,175,444
se_78895436
stackoverflow
MACHINE_LEARNING
Module not found error when using ScrapeGraphAI
Module not found error when using ScrapeGraphAI I am doing a simple example using ScrapeGraphAI, found on this link ScrapeGraphAI Github. I have installed the packages in the virtual environment, as shown in the link: pip install scrapegraphai playwright install But when I run the code from scrapegraphai.graphs impo...
https://stackoverflow.com/questions/78895436/module-not-found-error-when-using-scrapegraphai
python, machine-learning, web-scraping, artificial-intelligence
1,724,221,923
se_79667331
stackoverflow
MACHINE_LEARNING
Why does my model&#39;s accuracy drop from ~95% on my device to ~25% on Edge Impulse?
Why does my model&#39;s accuracy drop from ~95% on my device to ~25% on Edge Impulse? I'm experiencing a significant drop in accuracy when uploading my model, dataset, and labels to Edge Impulse. The model performs with ~95% accuracy locally but only achieves ~25% accuracy in Edge Impulse. I've ensured the following: ...
https://stackoverflow.com/questions/79667331/why-does-my-models-accuracy-drop-from-95-on-my-device-to-25-on-edge-impulse
tensorflow, machine-learning
1,750,065,101
se_79662773
stackoverflow
MACHINE_LEARNING
How to transform a S3 directory as os.Path in Python with boto3?
How to transform a S3 directory as os.Path in Python with boto3? I want to use ImageFolder from Torchvision with an AWS S3 bucket where I have my dataset saved, however, it requires a os.Path like file and with boto3 I can just get a directory or a list which is not allowed by ImageFolder. Do you know how can I get a ...
https://stackoverflow.com/questions/79662773/how-to-transform-a-s3-directory-as-os-path-in-python-with-boto3
python, amazon-web-services, machine-learning, amazon-s3, pytorch
1,749,684,797
se_56188112
stackoverflow
MACHINE_LEARNING
Table Detection Task (TableBank &amp; Detectron ) : UnicodeDecodeError: &#39;ascii&#39; codec can&#39;t decode byte 0x80 in position 0: ordinal not in range(128)
Table Detection Task (TableBank &amp; Detectron ) : UnicodeDecodeError: &#39;ascii&#39; codec can&#39;t decode byte 0x80 in position 0: ordinal not in range(128) I have been trying to run a python script to test a pretrained model (ResNeXt-101) and visualize the performance of a Table Detection task proposed by TableB...
https://stackoverflow.com/questions/56188112/table-detection-task-tablebank-detectron-unicodedecodeerror-ascii-code
python, machine-learning, deep-learning, object-detection, faster-rcnn
1,558,101,992
se_53956538
stackoverflow
MACHINE_LEARNING
Calculating anomaly score for Anomaly detection using One-Class SVM
Calculating anomaly score for Anomaly detection using One-Class SVM I have a question about Calculating anomaly score for Anomaly detection using One-Class SVM. My question is that: How can I calculate it using decision_function(X), just the way I calculate anomaly score in Isolation forest? Thanks a lot,
https://stackoverflow.com/questions/53956538/calculating-anomaly-score-for-anomaly-detection-using-one-class-svm
machine-learning, anomaly-detection
1,545,990,620
se_72725944
stackoverflow
MACHINE_LEARNING
Create custom connection/ non-fully connected layers in Pytorch
Create custom connection/ non-fully connected layers in Pytorch As shown in the figure, it is a 3 layer with NN, namely input layer, hidden layer and output layer. I want to design the NN(in PyTorch, just the arch) where the input to hidden layer is fully-connected. However, from hidden layer to output, the first two ...
https://stackoverflow.com/questions/72725944/create-custom-connection-non-fully-connected-layers-in-pytorch
python, machine-learning, deep-learning, neural-network, pytorch
1,655,968,201
se_79657687
stackoverflow
MACHINE_LEARNING
Future Looking Target Variables in Light GBM
Future Looking Target Variables in Light GBM I am working on a ML model using LightGBM classifier with a task to maximise a value( PnL) for a quantitative strategy. I am entering a trade every Monday and can hold till Friday close. I want to create labels to maximise optimum exit within the week I am using the target ...
https://stackoverflow.com/questions/79657687/future-looking-target-variables-in-light-gbm
machine-learning, data-science, xgboost, algorithmic-trading
1,749,373,278
se_51054627
stackoverflow
MACHINE_LEARNING
PyTorch Autograd automatic differentiation feature
PyTorch Autograd automatic differentiation feature I am just curious to know, how does PyTorch track operations on tensors (after the .requires_grad is set as True and how does it later calculate the gradients automatically. Please help me understand the idea behind autograd. Thanks.
https://stackoverflow.com/questions/51054627/pytorch-autograd-automatic-differentiation-feature
python, machine-learning, computer-vision, pytorch
1,530,074,320
se_77029483
stackoverflow
MACHINE_LEARNING
Why do I run out of memory when training with a large dataset, but have no problems with a small dataset?
Why do I run out of memory when training with a large dataset, but have no problems with a small dataset? I'm trying to build a keypoint detection system using Keras. I've got a UNet like model, with a series of convolutions, batch normalization, and max pooling, followed by a symmetric series of up sampling, convolut...
https://stackoverflow.com/questions/77029483/why-do-i-run-out-of-memory-when-training-with-a-large-dataset-but-have-no-probl
python, tensorflow, machine-learning, keras
1,693,678,213
se_79662912
stackoverflow
MACHINE_LEARNING
How can I improve the accuracy of my Transformer-based text classification model (news headlines)?
How can I improve the accuracy of my Transformer-based text classification model (news headlines)? I'm training a Transformer-based text classification model from scratch using PyTorch. The goal is to classify news articles (headline + short description) into 15 classes. I'm achieving about 72–75% validation accuracy,...
https://stackoverflow.com/questions/79662912/how-can-i-improve-the-accuracy-of-my-transformer-based-text-classification-model
machine-learning, deep-learning, artificial-intelligence
1,749,702,650
se_75699946
stackoverflow
MACHINE_LEARNING
Getting error &#39;numpy.float64&#39; object not iterable
Getting error &#39;numpy.float64&#39; object not iterable While executing recommend() function i am getting error at line movies_list = sorted([enumerate(distances[0])], reverse=True, key = lambda x:x[1])[1:6] The following is the code I tried. please suggest changes in it: def recommend1(movie): movie_index = new_...
https://stackoverflow.com/questions/75699946/getting-error-numpy-float64-object-not-iterable
python, pandas, list, numpy, machine-learning
1,678,474,120
se_79648131
stackoverflow
MACHINE_LEARNING
filedescriptor out of range in select()
filedescriptor out of range in select() I am running a training job using MLflow and an MLflow recipe. In the recipe.train step, the training starts an experiment and runs for 350 epochs. After the 350 epochs are completed and I try to log the artifacts, the process gets stuck for a long time and I keep getting this e...
https://stackoverflow.com/questions/79648131/filedescriptor-out-of-range-in-select
machine-learning, deep-learning, databricks, mlflow
1,748,833,712
se_70816481
stackoverflow
MACHINE_LEARNING
IndexError: index 89 is out of bounds for axis 0 with size 89
IndexError: index 89 is out of bounds for axis 0 with size 89 I am getting this error but I don't understand how to solve it, can anyone please help? I am trying to run a pre-implemented project on my own text dataset. I am using CUB 200-2011 bird dataset which had initially 11788 birds images and author model has bee...
https://stackoverflow.com/questions/70816481/indexerror-index-89-is-out-of-bounds-for-axis-0-with-size-89
python, machine-learning, deep-learning, pytorch
1,642,880,417
se_79591703
stackoverflow
MACHINE_LEARNING
SUMO RL : &#39;module’ object is not callable
SUMO RL : &#39;module’ object is not callable When I run the following code i get error 'module' object is not callable if __name__ == "__main__": env_name = "4x4grid" register_env( env_name, lambda _: ParallelPettingZooEnv( sumo_rl.parallel_env( net_file="./4x4-Lucas...
https://stackoverflow.com/questions/79591703/sumo-rl-module-object-is-not-callable
python, machine-learning, ray, sumo, rllib
1,745,547,533
se_12395542
stackoverflow
MACHINE_LEARNING
Why do we maximize variance during Principal Component Analysis?
Why do we maximize variance during Principal Component Analysis? I'm trying to read through PCA and saw that the objective was to maximize the variance. I don't quite understand why. Any explanation of other related topics would be helpful
https://stackoverflow.com/questions/12395542/why-do-we-maximize-variance-during-principal-component-analysis
machine-learning, feature-extraction
1,347,480,642
se_79657416
stackoverflow
MACHINE_LEARNING
Loading and training data on Sagemaker with a Self-supervised pre-training model
Loading and training data on Sagemaker with a Self-supervised pre-training model I'm testing a Self-supervise pre-training model, independently of the model I'm getting the same Error. My environment is Jupiter Labs for AWS Sagemaker, the problem comes when, using args and trying to load the data (either from an S3 bu...
https://stackoverflow.com/questions/79657416/loading-and-training-data-on-sagemaker-with-a-self-supervised-pre-training-model
python, machine-learning, amazon-s3, pytorch, amazon-sagemaker
1,749,341,448
se_7047555
stackoverflow
MACHINE_LEARNING
Using frequent itemset mining to build association rules?
Using frequent itemset mining to build association rules? I am new to this area as well as the terminology so please feel free to suggest if I go wrong somewhere. I have two datasets like this: Dataset 1: A B C 0 E A 0 C 0 0 A 0 C D E A 0 C 0 E The way I interpret this is at some point in time, (A,B,C,E) occurred ...
https://stackoverflow.com/questions/7047555/using-frequent-itemset-mining-to-build-association-rules
python, machine-learning, data-mining
1,313,193,694
se_23030284
stackoverflow
MACHINE_LEARNING
Content based recommender system with sklearn or numpy
Content based recommender system with sklearn or numpy I am trying to build a content-based recommender system in python/pandas/numpy/sklearn. Here are the matrix involved and their size: X: n_customers * n_features (contains the features of each customer) Y: n_customers *n_products (contains the scores given by ea...
https://stackoverflow.com/questions/23030284/content-based-recommender-system-with-sklearn-or-numpy
python, numpy, machine-learning, scikit-learn, recommendation-engine
1,397,305,162
se_76083485
stackoverflow
MACHINE_LEARNING
SHAP - instances that have more than one dimension
SHAP - instances that have more than one dimension I am very new to SHAP and I would like to give it a try, but I am having some difficulty. The model is already trained and seems to perform well. I then use the training data to test SHAP with. It looks like so: var_Braeburn var_Cripps Pink var_Dazzle var_Fuji ...
https://stackoverflow.com/questions/76083485/shap-instances-that-have-more-than-one-dimension
python, machine-learning, shap
1,682,232,547
se_78379820
stackoverflow
MACHINE_LEARNING
LLM Studio fail to download model with error : unable to get local issuer certificate
LLM Studio fail to download model with error : unable to get local issuer certificate In LLM studio, when I try to download any model, I am facing following error: Download Failed: unable to get local issuer certificate
https://stackoverflow.com/questions/78379820/llm-studio-fail-to-download-model-with-error-unable-to-get-local-issuer-certif
javascript, python, machine-learning
1,713,974,606
se_56352819
stackoverflow
MACHINE_LEARNING
Brain js slow in string classification
Brain js slow in string classification I'm using brain js for text classification. The problem that I face is the speed of training is incredibly slow. The below code takes 15-20 minutes to execute. I've read about a couple of simple projects which seem to face the same issue. Some of the authors do something very int...
https://stackoverflow.com/questions/56352819/brain-js-slow-in-string-classification
javascript, machine-learning, brain.js
1,559,101,519
se_79381185
stackoverflow
MACHINE_LEARNING
Is it possible to evaluate Machine Translations using Sentence BERT?
Is it possible to evaluate Machine Translations using Sentence BERT? I'm not referring to BERTScore. BERTScore uses token-level word embeddings, you compute pairwise cosine similarity of word embeddings and obtain scores using greedy matching. I'm referring to Sentence BERT. I.e., pure cosine similarity to compare sem...
https://stackoverflow.com/questions/79381185/is-it-possible-to-evaluate-machine-translations-using-sentence-bert
machine-learning, nlp, bert-language-model, machine-translation, sentence-similarity
1,737,638,287
se_79597119
stackoverflow
MACHINE_LEARNING
How to reduce GPU memory usage when running Stable Diffusion with HuggingFace Diffusers?
How to reduce GPU memory usage when running Stable Diffusion with HuggingFace Diffusers? I'm trying to run Stable Diffusion using HuggingFace's diffusers library, but I keep getting CUDA out of memory errors on my RTX 3060 (12GB VRAM). I'm using the standard StableDiffusionPipeline from the "CompVis/stable-diffusion-v...
https://stackoverflow.com/questions/79597119/how-to-reduce-gpu-memory-usage-when-running-stable-diffusion-with-huggingface-di
python, machine-learning, deep-learning, pytorch, stable-diffusion
1,745,866,176
se_79492869
stackoverflow
MACHINE_LEARNING
Why is AWS SageMaker not submitting a training job when I create an estimator object?
Why is AWS SageMaker not submitting a training job when I create an estimator object? I'm trying to submit a training job to AWS SageMaker AI API via GitHub using the HuggingFace estimator. However, every time I try to create the job, the estimator creates an object of type None and the script hangs up indefinitely. I...
https://stackoverflow.com/questions/79492869/why-is-aws-sagemaker-not-submitting-a-training-job-when-i-create-an-estimator-ob
python, amazon-web-services, machine-learning, amazon-sagemaker
1,741,363,677
se_79655017
stackoverflow
MACHINE_LEARNING
Confused about r-torch syntax
Confused about r-torch syntax I have been trying to tackle a regression problem by training a neural network to predict a continuous variable using r-torch. My question pertains to the syntax used to achieve this. When initializing the dataset for torch, I have to declare what 'x' and 'y' are. I understand that 'y' is...
https://stackoverflow.com/questions/79655017/confused-about-r-torch-syntax
r, machine-learning, deep-learning, neural-network, torch
1,749,147,688
se_52787309
stackoverflow
MACHINE_LEARNING
Removing nonsense words in python
Removing nonsense words in python I want to remove nonsense words in my dataset. I tried which I saw StackOverflow something like this: import nltk words = set(nltk.corpus.words.words()) sent = "Io andiamo to the beach with my amico." " ".join(w for w in nltk.wordpunct_tokenize(sent) \ if w.lower() in words or...
https://stackoverflow.com/questions/52787309/removing-nonsense-words-in-python
python, machine-learning, nlp, nltk
1,539,380,327
se_79430117
stackoverflow
MACHINE_LEARNING
How to extract tables from a PDF and convert them into structured HTML (&lt;table&gt;, &lt;tr&gt;, &lt;td&gt;) while maintaining the original layout and formatting?
How to extract tables from a PDF and convert them into structured HTML (&lt;table&gt;, &lt;tr&gt;, &lt;td&gt;) while maintaining the original layout and formatting? 1]Original page of Doc1 contain 4 tables 1]Output .html page of Doc1 not detecting table properly,sometimes extracting text from table as plain text 2]Ori...
https://stackoverflow.com/questions/79430117/how-to-extract-tables-from-a-pdf-and-convert-them-into-structured-html-table
python, machine-learning, deep-learning, langchain, large-language-model
1,739,280,110
se_70965317
stackoverflow
MACHINE_LEARNING
How to fit column wise ordinal encoding
How to fit column wise ordinal encoding I have a dataframe like as shown below tdf = pd.DataFrame({'grade': np.random.choice(list('AAAD'),size=(5)), 'dash': np.random.choice(list('PPPS'),size=(5)), 'dumeel': np.random.choice(list('QWRR'),size=(5)), 'dumma': np.r...
https://stackoverflow.com/questions/70965317/how-to-fit-column-wise-ordinal-encoding
python, pandas, machine-learning, scikit-learn, deep-learning
1,643,856,067
se_74608620
stackoverflow
MACHINE_LEARNING
Apply Ordinal Encoding to an entire column
Apply Ordinal Encoding to an entire column I'm working with a dataset of movies to run a regression and predict the gross. But because some columns have String values, I'm doing an Ordinal Encoding before I do the split and run the regression. One example is the column containing the movie titles(shown below): Series_...
https://stackoverflow.com/questions/74608620/apply-ordinal-encoding-to-an-entire-column
python, pandas, dataframe, machine-learning, linear-regression
1,669,689,867
se_79651091
stackoverflow
MACHINE_LEARNING
Resolve infinite time for parquet file loading in pandas
Resolve infinite time for parquet file loading in pandas !python -V #%% import pandas as pd import pickle from sklearn.metrics import root_mean_squared_error from sklearn.feature_extraction import DictVectorizer import mlflow def read_dataframe1(filename): df = pd.read_parquet(filename) df['duration'] = df.t...
https://stackoverflow.com/questions/79651091/resolve-infinite-time-for-parquet-file-loading-in-pandas
python, pandas, machine-learning, parquet
1,748,948,022