machine-learning Questions
4
Solved
I am trying to use the Tensorflow Lite ML Model with my project, and, unfortunately, I face an error while running my project:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/tejasravishankar/Devel...
Sextodecimo asked 28/7, 2020 at 17:5
7
Solved
I am copying the pyspark.ml example from the official document website:
http://spark.apache.org/docs/latest/api/python/pyspark.ml.html#pyspark.ml.Transformer
data = [(Vectors.dense([0.0, 0.0]),), ...
Denicedenie asked 16/9, 2016 at 23:5
5
Solved
**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:...
Hernandes asked 7/7, 2023 at 1:11
4
I'm trying to install postgres vector extension on my mac but am getting
ERROR: extension "vector" has no installation script nor update path for version "0.4.0".
Here's what I...
Gaffrigged asked 7/3, 2023 at 15:32
8
Solved
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.preproces...
Cerium asked 25/9, 2019 at 14:47
6
Solved
In the paper Attention is all you need, under section 5.3, the authors suggested to increase the learning rate linearly and then decrease proportionally to the inverse square root of steps.
How do...
Laritalariviere asked 17/12, 2020 at 15:12
3
There are a lot of changes in scikit-learn 1.2.0 where it supports pandas output for all of the transformers but how can I use it in a custom transformer?
In [1]: Here is my custom transformer whic...
Alkyne asked 6/1, 2023 at 3:14
3
Solved
I am looking for a way to take an image/target batch for segmentation and return the batch where the image dimensions have been changed to be equal for the whole batch. I have tried this using the ...
Illdisposed asked 21/5, 2020 at 21:11
3
I have been trying to fine-tune GPT2 on the wikitext-2 dataset (just to help myself learn the process) and I am running into a warning message that I have not seen before:
"The attention mask ...
Yim asked 5/12, 2022 at 1:57
4
Solved
I'm running a Keras neural network model in Jupyter Notebook (Python 3.6)
I get the following error
AttributeError: 'list' object has no attribute 'ndim'
after calling the .fit() method from ...
Sandra asked 29/1, 2018 at 2:55
0
Screenshot demonstrating the use of Excel's Solver:
I have a task to automate a certain excel worksheet. The worksheet happens to implement a logic with an excel plugin called Solver. It uses a si...
Fatally asked 29/3 at 15:8
4
Solved
Does it make sense to use Conda + Poetry for a Machine Learning project? Allow me to share my (novice) understanding and please correct or enlighten me:
As far as I understand, Conda and Poetry hav...
Moa asked 25/1, 2022 at 15:9
4
Solved
When we have a high degree linear polynomial that is used to fit a set of points in a linear regression setup, to prevent overfitting, we use regularization, and we include a lambda parameter in th...
Entomophagous asked 29/8, 2012 at 16:4
2
Solved
How can I run hierarchical clustering on a correlation matrix in scipy/numpy? I have a matrix of 100 rows by 9 columns, and I'd like to hierarchically cluster by correlations of each entry across t...
Catenoid asked 25/5, 2010 at 19:39
9
I've trained dataset using XGB Classifier, but I got this error in local. It worked on Colab and also my friends don't have any problem with same code.
I don't know what that error means...
Invalid...
Enyo asked 25/4, 2022 at 8:32
4
Solved
I am wondering, if in Convolutional Neural Networks batch normalization should be applied with respect to every pixel separately, or should I take the mean of pixels with respect to each channel?
...
Incudes asked 21/8, 2017 at 14:40
2
Solved
Suppose i have the data frame below:
I checked the documentation but it's only based on a single column.
Reproducible code:
x = np.random.normal(100,5,100)
data = pd.DataFrame(x)
epsilon = 10...
Braynard asked 12/3, 2020 at 7:37
2
Solved
I'm fine tuning a pre-trained bert model and i have a weird problem:
When i'm fine tuning using the CPU, the code saves the model like this:
With the "pytorch_model.bin". But when i use ...
Schuman asked 23/12, 2023 at 20:43
14
Solved
I have a dataset containing grayscale images and I want to train a state-of-the-art CNN on them. I'd very much like to fine-tune a pre-trained model (like the ones here).
The problem is that almos...
Coptic asked 24/8, 2018 at 0:33
3
Solved
In sklearn.metrics.f1_score, the f1 score has a parameter called "average". What does macro, micro, weighted, and samples mean? Please elaborate, because in the documentation, it was not explained ...
Savoie asked 18/4, 2019 at 6:26
3
Is it possible to calculate the size of a model ( let's say a Random Forest classifier ) in scikit-learn?
For example:
from sklearn.ensemble import RandomForestClassifier
clf = RandomForestCl...
Romany asked 9/8, 2017 at 23:0
4
Solved
I am not able to access jupyter lab created on google cloud
I created one notebook using Google AI platform. I was able to start it and work but suddenly it stopped and I am not able to start it n...
Longdrawnout asked 20/8, 2021 at 12:57
3
Solved
I am currently performing multi class SVM with linear kernel using python's scikit library.
The sample training data and testing data are as given below:
Model data:
x = [[20,32,45,33,32,44,0],[...
Latt asked 12/7, 2018 at 4:43
3
Solved
I'm trying to build a neural network to predict per-capita-income for counties in US based on the education level of their citizens.
X and y have the same dtype (I have checked this) but I'm gettin...
Copper asked 12/1, 2023 at 20:45
2
Solved
I have the following data:
Group_ID Item_id Target
0 1 1 0
1 1 2 0
2 1 3 1
3 2 4 0
4 2 5 1
5 2 6 1
6 3 7 0
7 4 8 0
8 5 9 0
9 5 10 1
I need to split the dataset into a training and testing set bas...
Winna asked 21/2, 2019 at 0:45
© 2022 - 2024 — McMap. All rights reserved.