Contains Notebooks for my Youtube channel Videos.
wiqaaas / youtube Goto Github PK
View Code? Open in Web Editor NEWContains Notebook for my youtube channel videos
Contains Notebook for my youtube channel videos
great code
https://github.com/wiqaaas/youtube/blob/master/Machine_Learning_from_Scratch/Ridge_Regression/Ridge_Regression_using_Gradient_Descent.ipynb
and video
https://www.youtube.com/watch?v=1j6DClKQjZY&ab_channel=wiqaaas
only why you calculating differently intercept
if feature_is_constant == True:
derivative = 2 * np.dot(errors, feature)
since in
https://github.com/chasinginfinity/ml-from-scratch/blob/master/02%20Linear%20Regression%20using%20Gradient%20Descent/Linear%20Regression%20using%20Gradient%20Descent.ipynb
and
https://www.youtube.com/watch?v=4PHI11lX11I&t=536s&ab_channel=AdarshMenon
it calculated as
D_c = (-2/n) * sum(Y - Y_pred) # Derivative wrt c
How can I get the dataset ?
484 RMSE is: 0.20023371637733992
485 RMSE is: 0.20023371637733992
486 RMSE is: 0.20023371637733992
487 RMSE is: 0.20023371637733992
After running the file, I'm getting the following:
ValueError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_9540\3618313043.py in ?()
8 bestParam, bestModel = E_Anfis.fit(X_train,y_train,X_test,y_test,optimize_test_data=True)
9
10 from scipy.stats import pearsonr
11 pred_train = E_Anfis.predict(X_train,bestParam,bestModel)
---> 12 pearsonr(y_train,pred_train.reshape(-1,1))
13
14 pred_test = E_Anfis.predict(X_test,bestParam,bestModel)
15 pearsonr(y_test,pred_test.reshape(-1,1))
c:\Users\dabis\AppData\Local\Programs\Python\Python312\Lib\site-packages\scipy\stats_stats_py.py in ?(x, y, alternative, method)
4804 msg = ("An input array is nearly constant; the computed "
4805 "correlation coefficient may be inaccurate.")
4806 warnings.warn(stats.NearConstantInputWarning(msg), stacklevel=2)
4807
-> 4808 r = np.dot(xm/normxm, ym/normym)
4809
4810 # Presumably, if abs(r) > 1, then it is only some small artifact of
4811 # floating point arithmetic.
Any ideas?
How to get config.json file??
may you clarify
why intercept is not calculated separately in
https://github.com/wiqaaas/youtube/blob/master/Machine_Learning_from_Scratch/Lasso_Regression/Lasso_Regression_using_Coordinate_Descent.ipynb
when it is calculated in
https://github.com/wiqaaas/youtube/blob/master/Machine_Learning_from_Scratch/Ridge_Regression/Ridge_Regression_using_Gradient_Descent.ipynb
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.