58 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
55
views
SGDRegressor graph looking so different from LinearRegression
Using ggplot2's "economics" dataset to study linear regression.
why is my SGDRegression graph looking like this?
x = df.loc[:,'pce'].values.reshape(-1,1)
y = df.loc[:,'psavert'].values....
0
votes
0
answers
228
views
Zebra ZT610: which command accurately reports how many labels in the print queue?
I.e. how many labels left to print in the job?
Made a test label using ^PQ30 in the internal ZT610 label editor.
Shouldn't it then report 30?
~HS doesn't seem to do it, neither does device.jobs.print.
...
0
votes
1
answer
249
views
Zebra ZPL file: Print a SGD parameter
I have a label file in ZPL format for a ZD621. I have (3) of these printers on my network and would like my labels to show which printer it came from. I used the SGD setvar "device.friend_name&...
2
votes
1
answer
1k
views
How loss_fn connected to model and optimizer in pytorch
The following code is just a template, you see the following pattern a lot in AI codes.
I have a specific question about loss.backward(). in the following code we have a model, as we pass model....
0
votes
0
answers
88
views
SGD Optimizer Not Working on cost function
I wanted to make own neural network for Speech data set and for that using tensorflow.I am writing the code imported library and dataset then done one hot encoding and after all done the weights and ...
0
votes
1
answer
1k
views
Is it something wrong with torch.optim.SGD with momentum
It seems that torch.optim.SGD may have a bug when momentum is added. From my understanding, one can implement SGD with momentum by simply providing some value for the momentum argument, such as
torch....
1
vote
3
answers
6k
views
Getting AttributeError: 'SGD' object has no attribute 'defaults' in SimSwap Colab
I'm new to using python and code based programming language, but I'm trying to branch out by using Colab programs in an effort to understand a little of the application. I've been using this Colab ...
0
votes
1
answer
335
views
Linear regression with SGD using pyspark.ml.linearegression
I'm using the LinearRegression model in the Spark ML for prediction.
import pyspark.ml.regression.LinearRegression
featureassembler = VectorAssembler(inputCols=[‘Year’, ‘Present_Price’,
...
0
votes
0
answers
202
views
How to change config file to start fine tuning?
I am working on word detection and using MMOCR’s ‘DBNetpp’ detection model, please refer [2202.10304] Real-Time Scene Text Detection with Differentiable Binarization and Adaptive Scale Fusion.
I want ...
0
votes
0
answers
119
views
ValueError: x and y can be no greater than 2-D, but have shapes (6,) and (6, 15, 15)
assignment:Implement SGD Classifier with Logloss and L2 regularization Using SGD without using sklearn
<p><pre>Initialize the weight_vector and intercept term to zeros (Write your code in ...
0
votes
1
answer
526
views
SDG with batch size >1?
I'm taking the "Deep NNs with PyTorch" course by IBM and I encountered lab examples where SDG is used for optimizer while batch size is >1 in DataLoader.
If I understand correctly, SGD ...
3
votes
0
answers
94
views
ValueError: No gradients provided for any variable: ['x_hat:0']
I am working on transforming images in order to make adversarial attacks in computer vision systems that are robust to rotation. I would like to find an x_hat image that could optimize a mean loss ...
4
votes
2
answers
328
views
How to calculate maximum gradient for each layer given a mini-batch
I try to implement a fully-connected model for classification using the MNIST dataset. A part of the code is the following:
n = 5
act_func = 'relu'
classifier = tf.keras.models.Sequential()
...
1
vote
1
answer
199
views
Is there a way to print the calculated max gradient of each layer for a given mini-batch?
I am implementing a fully-connected model for classification using the MNIST dataset. A part of the code is the following:
model=tf.keras.models.Sequential([
tf.keras.layers.Input(shape=(28, 28, 1)),
...
0
votes
2
answers
2k
views
Having issues with SGD/Keras in my AI chatbot
Hello there guys. First time making a post here.
So I am trying to make an AI chatbot using Python, in a Pycharm IDLE. While trying to start training the neural network that would enable the chatbot ...