Skip to main content

All Questions

0 votes
0 answers
32 views

weird plot pattern for mini-batch implementation of a linear regression model

I had to implement gradient descent to learn the B0 and B1 for predicting a linear polynomial equation the program runs as expected but the plot shows that the training error and the testing error of ...
BORED CROW's user avatar
-2 votes
1 answer
80 views

The training error and testing error is very similiar for linear regression model when using gradient descent [closed]

I had to implement gradient descent to learn the B0 and B1 for predicting a linear polynomial equation the program runs as expected but the plot shows that the training error and the testing error of ...
BORED CROW's user avatar
-1 votes
1 answer
147 views

from lab_utils_uni import soup_bowl

Why is the soup_bowl not working like Coursera’s lab in my local Jupyter (1st picture)? %matplotlib widget is working fine but soup_bowl is not giving the 3d as the 2nd picture.
user22872128's user avatar
0 votes
2 answers
94 views

Problems with Python tensorflow

I am a noob in programming who tried to study machine learning. I used tensorflow for Python. Here's the code, written (but not 100% copied) with official tensorflow guide (here's it https://www....
Noob's user avatar
  • 3
1 vote
1 answer
172 views

Plotting Numpy Nd array (3d to 2d)

I've trained a model and extracted .h5 model architecture, then I used .h5 as prediction of time series datasets. This process was done by converting pandas dataframe to numpy array and adding dummy ...
Mammadam's user avatar
0 votes
1 answer
145 views

PR-ROC curve with cross validation strange behaviour

Inspired by this ROC curve using cross validation I attempted to create a PR-ROC curve using cross-validation. However, the PR-ROC curve produced seems strange and not what a PR-ROC curve usually ...
Dawn's user avatar
  • 658
-2 votes
1 answer
150 views

Label point on PCA decision surface - SVM

I just created a PCA decision surfare for Support Vector Machine. I want to see label for each point. Example: I want to click on a point and read which row is; example 1 point represent Italy, 1 ...
Giovanni Pontonio's user avatar
1 vote
1 answer
130 views

How to find the regression line for multiple independent variables?

I'm trying to understand how the Multiple Line Regression works in code for machine learning. The issue I'm having is that I don't get how to set up my regression line properly or if my coefficients ...
user avatar
0 votes
0 answers
203 views

Plot normal distribution into a histogram with 1000 samples between 1 to 10 interval

For each of the following distributions, plot its pdf in the given interval and a histogram based on 1000 samples. Use pdf(x, *args)to compute the probability densities for the given array of ...
heyoka955's user avatar
0 votes
1 answer
93 views

how the left side of the code assign values to counts and bin_edges ?? can anyone please explain this code briefly

I want to know how count and bin_edges values are assigned at a time by the np.histogram. counts,bin_edges=np.histogram(iris_setosa['sepal_length'],bins=10,density=True)
Jawad Hayat Shreef's user avatar
2 votes
1 answer
571 views

how to calculate the scatter within classes for a 50x20 matrix

I am trying to reduce a largely dimentional matrix to only 2D, i was using an example for 2D arrays,which works, but i would need to do the same for a higher dimentional scatter. I have two classes ...
user avatar
0 votes
0 answers
102 views

Value Error when trying to visualize an image

I´m trying to visualize some images belonging to different classes. The classes are class0,class1,class2 and they mean X-ray pictures with healthy, covid and pneumonia lungs respectively. As an ...
Panri93's user avatar
  • 213
0 votes
0 answers
89 views

How do I get the image file to be properly labeled when trying to produce topk predictions on an image?

I am trying to produce a graph of the top 5 predictions from a image classifier for any given image. My files are organized as such: Test/ --> class_name/ --> image_number for example, Test/ --> ...
Sanglang's user avatar
-1 votes
2 answers
75 views

Machine Generation of Art Patterns in Vector Fields

I am trying to rewrite this article:We draw, programming. Machine-generated generation of artistic patterns in vector fields (Russian language) from pseudo-code in Python. I am new to ML, hence the ...
6 crimes's user avatar
3 votes
1 answer
6k views

ValueError: x and y must have same first dimension, but have shapes (10, 1) and (90,)

I'm learning ML from Udemy. From one of the lectures of Polynomial Regression, the following code is as follows: # importing libraries import pandas as pd import numpy as np import matplotlib.pyplot ...
Ashutosh Dash's user avatar

15 30 50 per page
X