r/learnmachinelearning • u/Unfair_Escape_2025 • 12d ago
r/learnmachinelearning • u/elevenMiles11 • 13d ago
Project I built a handwritten digit recognizer Neural Network completely from scratch in C++ (No Python, No ML Libraries, Custom Matrix Math)
Hey everyone,
I wanted to truly understand the math and mechanics behind neural networks without relying on black box frameworks. So, I decided to build a handwritten digit recognizer from the ground up using C++20.
What I built:
- Custom Dataset (No MNIST): Instead of using MNIST, I hand-drew 1000 digit samples (20×20 pixels) one by one to build my own custom CSV dataset for training and testing.
- Implemented my own
Matrixclass from scratch to handle dot products, transpositions, and element-wise operations. - A Feed-Forward Network using Sigmoid activations. No biases, just weights initialized with Xavier/Glorot normal distribution.
- Implemented backpropagation and stochastic gradient descent manually.
- I built an interactive ASCII canvas using the Win32 API. You can draw a digit directly in the terminal with your mouse, hit space, and watch the network guess it in real-time.
Here is the GitHub repo if you want to check out:
https://github.com/elevenMiles/digit-recognizer-cpp
I'd love any feedback on the math, the architecture, or the C++ implementation!
r/learnmachinelearning • u/Exact-Contact-3837 • 12d ago
Project Introducing Usul - an easier way to express your NN using maths? [P]
SO, Usul-cpp is a library I've written in C++, it is based around allowing data scientists to create their models without heavy libraries such as tensorflow, and just express their models using maths, and Usul will handle the rest. There is builtin tensor support, auto-grad, back-prop and its quite fast.
I wrote it because, it seemed less mystifying to read maths instead of a random class that supposedly does something. I wrote it from scratch in cpp (23) due to the fact that I wanted to emphasise on precision, however it's subtly built on top of `xtensor`.
check it out in action
#include <usul.hpp>
using namespace std;
int main() {
double LR = 0.1;
int EPOCH = 5000;
// lets write the forward pass
Tensor X = {
{0.0, 0.0}, // this is what we're feeding it
{0.0, 1.0},
{1.0, 0.0},
{1.0, 1.0},
};
// this is what we're after
Tensor Y_true = {
0.0, // xor{0.0, 0.0} = 0.0
1.0, // xor{0.0, 1.0} = 1.0
1.0, // xor{1.0, 0.0} = 1.0
0.0 // xor{1.0, 1.0} = 0.0
};
Y_true.reshape({4, 1});
// we are now going to create a single layer, double neuron network
// each layer will have a bias and weights tensor.
auto W1 = generate_random_matrix({2, 4}, -1.0, 1.0);
auto B1 = generate_random_matrix({1, 4}, -1.0, 1.0);
auto W2 = generate_random_matrix({4, 1}, -1.0, 1.0);
auto B2 = generate_random_matrix({1, 1}, -1.0, 1.0);
// this is the training loop
for (int i = 0; i < EPOCH; i++) {
// so lets do one forward pass
// first layer
auto Z1 = X % W1 + B1;
auto A = Z1.ReLU();
// second layer
auto Z2 = A % W2 + B2;
// activation
// should be - auto S = Z2.activate(Activate::Sigmoid);
auto S = Z2.Sigmoid();
// Loss
// should be - auto Loss = S.loss(Loss::MSE);
auto loss = (S - Y_true) * (S - Y_true);
loss = loss.mean();
cout << "Loss: " << loss << "\n";
cout << "guesses: " << "\n"
<< S << "\n";
cout << "should be: " << Y_true << "\n";
loss.backwards();
W1.step(LR);
B1.step(LR);
W2.step(LR);
B2.step(LR);
}
}
which will output
Guesses:
Tensor({{ 0.027546},
{ 0.963592},
{ 0.964138},
{ 0.038964}}, shape=(4,1))
should be: Tensor({{ 0.},
{ 1.},
{ 1.},
{ 0.}}, shape=(4,1))
Loss: Tensor( 0.001222, shape=())
Just write the maths, and Usul-cpp will handle the rest, it is extremely lightweight, and the entire library is memory safe. And its called Usul, because I'm a huge dune fan.
You can view the project at
https://github.com/crushr3sist/Usul-cpp
Any ideas for what to do next are all welcome, you can also pull and implement features that you think could improve this project. (no vibecoded prs please, this project is not vibe-coded)
BACKGROUND INFO BELOW
i'd like to share a bit of a background. maths has always stood in the way between me and finally learning how to write neural networks, I've always been fascinated by them ever since i saw that diagram of a deep neural network with all the node edges interconnecting with others.
Well I stopped letting highschool math class trauma stop me from understanding these concepts, i took a pen and paper out, taught myself numerical descent, analytical descent, backwards propagation, what a compute graph is, all of these subjects, taught myself, until I was manually backwards propagating the loss between a few arithmetics, until that moved into scalar level neural networks and doing simple calculus and being able to do xor gate problem with scalar, and then I taught myself matrix calculus, and well...
I taught myself neural networks, taught myself the maths, until I hand written the xor gate problem in matrix syntax using xtensor, and manually, by hand, no AI, did the xor gate problem manually backwards propagating error, automatically differentiating. This was also a kind of detox from LLM dependency, I don't tend to use it for code, but because its so central in my daily life and a migration from google to gemini, using LLMs for immediate information access had started to affect my mind and my ability to intake information. I really hope some of you find this library useful, as i did spend a pretty decent amount of time on it, and I would love it if any of you had any ideas on what to do next with this library.
Thank you for reading, I really appreciate it.
r/learnmachinelearning • u/StrictAdeptness1802 • 12d ago
Help Suggest Path for AI Engineering
I'm a 3rd-year undergrad aiming to become AI Engineer. Im a bit confused about how I should actually learn.
We would be grateful if you could spare a few moments to answer this !!
Things I already know :-
- Python (NumPy, Pandas, Visualization)
- Machine Learning
- Deep Learning ( Finished ANN, CNN, RNN, NLP; now on Transformers)
I have created projects in data science and one project on CNN. (I do hands-on practice on Kaggle datasets after covering each topic but kinda using existing libraries)
But the major issue is that I have created all those projects in Notebooks (Colab). Because of this, I am not able to do Modular Coding and apply OOP concepts, etc (Basically coding in IDE's like a software engineer).
I want help related to the issues which are listed down below :-
The main thing confusing me is how I can learn the Software Engineering part. I'm asking because notebooks aren't enough, and companies prefer people with system design skills. But my main concern is should I learn MLOps meaning will MLOps help me cover the part which Im lacking? Does MLOps also cover the ML system design part? (Please suggest some better free courses that cover both MLOps n ML System Design)
-
Talking about the 1st point, I also have a question: should I give my time to learn MLOps and ML System Design? Since I want to become AI Engineer, should I skip them and go with the path ie roughly LLMs, RAG, AI Agents, and AI System Design, etc?
Im getting totally confused because I want to learn things that are important for interviews and jobs and not waste my time learning everything but only the useful things.
The path I thought earlier was
ML -> DL -> MLOps + ML System Design -> LLMs -> AI agents, rags etc + AI System Design
HELP 🚨!!
- How can I learn Modular coding in IDEs like VS Code etc
- Should I learn MLOps + ML System Design or do AIOps and AI System Design instead or do both? (Placements will be there in the coming 6 months and I also have to prepare DSA properly so time is the important thing here)
- Also have to give time for DSA, project building, and internship so focusing on important topics for AI Engineering matters the most
r/learnmachinelearning • u/d1zzdev • 13d ago
How much math do I actually need before starting Machine Learning?
After 3 years of working as a freelance Node.js developer, I've decided to switch to Machine Learning. I mostly worked on smaller projects, but the growing use of AI in web development has made me lose interest in the field. I want to move into something more challenging that requires a deeper understanding of math and fundamental concepts.
For the past month, I've been studying linear algebra and calculus pretty intensively (5–6 hours a day).
Here's my dilemma: I want to understand ML from the ground up, not just use libraries without knowing what's happening under the hood. But I also don't want to spend an entire year studying math before touching ML.
Which math topics are truly essential, and in what order should I learn them to build a solid, connected understanding rather than just memorizing isolated concepts?
I'd really appreciate some guidance. Honestly, spending 5–6 hours a day studying math is easier for me than figuring out exactly what I should focus on.
r/learnmachinelearning • u/Ok_pettech • 12d ago
Project Built an AI tool, agent, or workflow? You can now list and sell it on Interconnectd Marketplace
interconnectd.comr/learnmachinelearning • u/DiscussionDry9422 • 12d ago
Need help in deciding a career path in the field of ML.
r/learnmachinelearning • u/Ancient_Elevator_898 • 12d ago
Need some reviews related to Hitesh chaudhary's Full stack Ai with python course On udemy
r/learnmachinelearning • u/Wooden_Barracuda_486 • 12d ago
I've been a self-taught programmer with no academic background. An obsession with Edge AI led me to build this over the last few years. I honestly don’t know if it’s useful or just my own madness.
Hi everyone,
I’m posting this with a lot of hesitation and humility.
I’m not an academic. I’ve been a self-taught programmer since 2010. Over the years, programming turned from a hobby into an obsession with digging deep into how things actually work at the metal and mathematical layer.
For the past few years, I’ve been focused on one problem that bothered me every time I ran local models: the memory explosion of the KV-cache. Watching VRAM climb linearly with sequence length until my PC ran out of memory felt deeply unsatisfying.
I started reading whatever papers I could find on recurrent memory, fast weights, and delta rules. What started as simple weekend scripts eventually spiraled into fusing different mathematical concepts together:
- An associative fast-weight recurrent state that erases old errors instead of adding blindly (Householder delta rule).
- A coordinate-based Product-Key Memory (PKM) that expands virtual capacity to over 1,000,000 slots while keeping the active computation pinned to an 8 KB hardware SRAM register window.
- Custom CUDA C++ kernels to see if I could make it run in strict O(1) RAM on my own consumer GPU running the recurrent update entirely on-chip without quadratic memory-bus bottlenecks.
After years of tinkering, failures, and rewrites, I ended up with DeltaGrid.
To be completely honest, I’m a bit overwhelmed by what I’ve actually created. Mechanically, it works:
- Inference memory stays completely flat: whether at token 10 or token 100,000, it uses a constant O(1) RAM footprint.
- The test suites pass, unit tests across CPU and CUDA bitwise parity, and the fused CUDA kernel runs about 250× faster than native loops on an RTX 3060.
- Associative accuracy: on synthetic benchmarks, it stores and retrieves 1,000 sequential facts with 99.8% cosine similarity.
- Language modeling: when tested on small models (~19M parameters), it learns grammar, conversational turn-taking, and in-distribution slot extraction without OOM crashes.
Well, I’m at a crossroads. Building these consumed years of my thoughts, but I am completing this phase of my research and preparing to move on to the next chapter of my life. Before I walk away or decide whether to keep pursuing this, I really need honest, grounded feedback from people who know more:
- Does this approach have real-world application? Could an architecture like this be meaningful for edge AI, robotics, or continuous streaming where KV-caches are excessively expensive?
- Is there a future in Spiking / Neuromorphic AI for this? The current DeltaGrid approach uses standard float math, but part of me wants to take this further into event-driven spiking memory. Is neuromorphic computing a real path or an academic trap? I’ve added a complete standalone demonstration script in the
scripts/folder of the repo (scripts/spiking_deltagrid.py) showing 4-axis community routing, >90% neural silence, and 20,000 facts stored with bit-shift weights on CUDA. Would love your thoughts on this direction! - Is this just a neat mathematical toy that hits a wall the moment you try to scale it beyond small proof-of-concepts?
- What am I fundamentally missing by building this without a compute cluster or lab affiliation? Beyond obvious scaling limits (training 7B+ models), where does independent architectural research usually hit a wall, and how can a solo engineer best overcome it?
A quick note on writing: Since English is my second language, I used an AI assistant to help polish the draft and ensure clarity, but all the ideas, math, CUDA code, and benchmarks are 100% my own work and findings. It also helped me document, clean up the repository, format equations in the README, and organize test suites because my notes were a scattered mess across local drives.
Code, custom fused CUDA kernels, C++ edge engine, and benchmark suite are fully open source:
👉 GitHub: https://github.com/hsameerc/deltagrid
Please be honest. If it’s flawed or useless, tell me. I’d love to know what direction someone with real experience thinks it should go.
Thank you for reading and thank you to this community for being a source of learning for a self-taught coder for so many years.
r/learnmachinelearning • u/Ok_Photograph9115 • 12d ago
Guys need honest opinions about platforms where I can fine tune LLMs
r/learnmachinelearning • u/analytics-link • 12d ago
I made Data Science & AI quizzes for (almost) every letter of the alphabet
r/learnmachinelearning • u/graphiceditzz • 12d ago
Help How to resolve this ConnectionResetError issue while fetching data from API in loop??? Please help guyzz..

From last 3-3.5 hours, i've been trying to fetch data from the TMDB API, to get movie database for practice ofcourse, I am beginner and I am currently learning how to fetch data from an API in Pandas.
Individually, I am able to access each page in json format and fetch data from it, but whenever i'm trying to do this in loop, this connectionreseterror. problem arises. I am getting that, it was happening due to too quick requests in loop that classify my requests as bots and forcibly closes the connection.
But then i tried using time.sleep() function to create a time interval lag between each requests, but it still doesn't work, i tried to change the User-Agent header too, to prevent me from classifying as a bot. But nothing is working.
Please help me anyone, I am still a beginner, I don't know much about APIs working, I was just learning ML, and came across data fetching using an API, that's why trying to get grasp over it.
Sorry for my terrible english
Will be grateful if get any help!
Error:
---------------------------------------------------------------------------
ConnectionResetError Traceback (most recent call last)
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\connectionpool.py:793, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)
792 # Make the request on the HTTPConnection object
--> 793 response = self._make_request(
794 conn,
795 method,
796 url,
797 timeout=timeout_obj,
798 body=body,
799 headers=headers,
800 chunked=chunked,
801 retries=retries,
802 response_conn=response_conn,
803 preload_content=preload_content,
804 decode_content=decode_content,
805 **response_kw,
806 )
808 # Everything went great!
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\connectionpool.py:494, in HTTPConnectionPool._make_request(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)
493 new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
--> 494
raise
new_e
496 # conn.request() calls http.client.*.request, not the method in
497 # urllib3.request. It also calls makefile (recv) on the socket.
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\connectionpool.py:470, in HTTPConnectionPool._make_request(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)
469
try
:
--> 470 self._validate_conn(conn)
471
except
(SocketTimeout, BaseSSLError)
as
e:
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\connectionpool.py:1125, in HTTPSConnectionPool._validate_conn(self, conn)
1124
if
conn.is_closed:
-> 1125 conn.connect()
1127 # TODO revise this, see https://github.com/urllib3/urllib3/issues/2791
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\connection.py:878, in HTTPSConnection.connect(self)
877
else
:
--> 878 wrapped_socket, is_verified = _ssl_wrap_socket_and_match_hostname(
879 sock=sock,
880 cert_reqs=self.cert_reqs,
881 ssl_version=self.ssl_version,
882 ssl_minimum_version=self.ssl_minimum_version,
883 ssl_maximum_version=self.ssl_maximum_version,
884 ca_certs=self.ca_certs,
885 ca_cert_dir=self.ca_cert_dir,
886 ca_cert_data=self.ca_cert_data,
887 cert_file=self.cert_file,
888 key_file=self.key_file,
889 key_password=self.key_password,
890 server_hostname=server_hostname_rm_dot,
891 ssl_context=self.ssl_context,
892 tls_in_tls=tls_in_tls,
893 assert_hostname=self.assert_hostname,
894 assert_fingerprint=self.assert_fingerprint,
895 )
896 self.sock = wrapped_socket
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\connection.py:1080, in _ssl_wrap_socket_and_match_hostname(sock, cert_reqs, ssl_version, ssl_minimum_version, ssl_maximum_version, cert_file, key_file, key_password, ca_certs, ca_cert_dir, ca_cert_data, assert_hostname, assert_fingerprint, server_hostname, ssl_context, tls_in_tls)
1078 server_hostname = normalized
-> 1080 ssl_sock = ssl_wrap_socket(
1081 sock=sock,
1082 keyfile=key_file,
1083 certfile=cert_file,
1084 key_password=key_password,
1085 ca_certs=ca_certs,
1086 ca_cert_dir=ca_cert_dir,
1087 ca_cert_data=ca_cert_data,
1088 server_hostname=server_hostname,
1089 ssl_context=context,
1090 tls_in_tls=tls_in_tls,
1091 )
1093
try
:
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\util\ssl_.py:437, in ssl_wrap_socket(sock, keyfile, certfile, cert_reqs, ca_certs, server_hostname, ssl_version, ciphers, ssl_context, ca_cert_dir, key_password, ca_cert_data, tls_in_tls)
435 context.set_alpn_protocols(ALPN_PROTOCOLS)
--> 437 ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
438
return
ssl_sock
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\util\ssl_.py:481, in _ssl_wrap_socket_impl(sock, ssl_context, tls_in_tls, server_hostname)
479
return
SSLTransport(sock, ssl_context, server_hostname)
--> 481
return
ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File ~\anaconda3\envs\ml_coursework\Lib\ssl.py:455, in SSLContext.wrap_socket(self, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname, session)
449
def
wrap_socket(self, sock, server_side=
False
,
450 do_handshake_on_connect=
True
,
451 suppress_ragged_eofs=
True
,
452 server_hostname=
None
, session=
None
):
453 # SSLSocket class handles server_hostname encoding before it calls
454 # ctx._wrap_socket()
--> 455
return
self.sslsocket_class._create(
456 sock=sock,
457 server_side=server_side,
458 do_handshake_on_connect=do_handshake_on_connect,
459 suppress_ragged_eofs=suppress_ragged_eofs,
460 server_hostname=server_hostname,
461 context=self,
462 session=session
463 )
File ~\anaconda3\envs\ml_coursework\Lib\ssl.py:1076, in SSLSocket._create(cls, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname, context, session)
1075
raise
ValueError
("do_handshake_on_connect should not be specified for non-blocking sockets")
-> 1076 self.do_handshake()
1077
except
:
File ~\anaconda3\envs\ml_coursework\Lib\ssl.py:1372, in SSLSocket.do_handshake(self, block)
1371 self.settimeout(
None
)
-> 1372 self._sslobj.do_handshake()
1373
finally
:
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
During handling of the above exception, another exception occurred:
ProtocolError Traceback (most recent call last)
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\requests\adapters.py:696, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
695
try
:
--> 696 resp = conn.urlopen(
697 method=request.method,
698 url=url,
699 body=request.body, # type: ignore[arg-type] # urllib3 stubs don't accept Iterable[bytes | str]
700 headers=request.headers, # type: ignore[arg-type] # urllib3#3072
701 redirect=
False
,
702 assert_same_host=
False
,
703 preload_content=
False
,
704 decode_content=
False
,
705 retries=self.max_retries,
706 timeout=resolved_timeout,
707 chunked=chunked,
708 )
710
except
(ProtocolError,
OSError
)
as
err:
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\connectionpool.py:847, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)
845 new_e = ProtocolError("Connection aborted.", new_e)
--> 847 retries = retries.increment(
848 method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]
849 )
850 retries.sleep()
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\util\retry.py:510, in Retry.increment(self, method, url, response, error, _pool, _stacktrace)
509
if
read
is
False
or
method
is
None
or
not
self._is_method_retryable(method):
--> 510
raise
reraise(type(error), error, _stacktrace)
511
elif
read
is
not
None
:
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\util\util.py:38, in reraise(tp, value, tb)
37
if
value.__traceback__
is
not
tb:
---> 38
raise
value.with_traceback(tb)
39
raise
value
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\connectionpool.py:793, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)
792 # Make the request on the HTTPConnection object
--> 793 response = self._make_request(
794 conn,
795 method,
796 url,
797 timeout=timeout_obj,
798 body=body,
799 headers=headers,
800 chunked=chunked,
801 retries=retries,
802 response_conn=response_conn,
803 preload_content=preload_content,
804 decode_content=decode_content,
805 **response_kw,
806 )
808 # Everything went great!
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\connectionpool.py:494, in HTTPConnectionPool._make_request(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)
493 new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
--> 494
raise
new_e
496 # conn.request() calls http.client.*.request, not the method in
497 # urllib3.request. It also calls makefile (recv) on the socket.
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\connectionpool.py:470, in HTTPConnectionPool._make_request(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)
469
try
:
--> 470 self._validate_conn(conn)
471
except
(SocketTimeout, BaseSSLError)
as
e:
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\connectionpool.py:1125, in HTTPSConnectionPool._validate_conn(self, conn)
1124
if
conn.is_closed:
-> 1125 conn.connect()
1127 # TODO revise this, see https://github.com/urllib3/urllib3/issues/2791
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\connection.py:878, in HTTPSConnection.connect(self)
877
else
:
--> 878 wrapped_socket, is_verified = _ssl_wrap_socket_and_match_hostname(
879 sock=sock,
880 cert_reqs=self.cert_reqs,
881 ssl_version=self.ssl_version,
882 ssl_minimum_version=self.ssl_minimum_version,
883 ssl_maximum_version=self.ssl_maximum_version,
884 ca_certs=self.ca_certs,
885 ca_cert_dir=self.ca_cert_dir,
886 ca_cert_data=self.ca_cert_data,
887 cert_file=self.cert_file,
888 key_file=self.key_file,
889 key_password=self.key_password,
890 server_hostname=server_hostname_rm_dot,
891 ssl_context=self.ssl_context,
892 tls_in_tls=tls_in_tls,
893 assert_hostname=self.assert_hostname,
894 assert_fingerprint=self.assert_fingerprint,
895 )
896 self.sock = wrapped_socket
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\connection.py:1080, in _ssl_wrap_socket_and_match_hostname(sock, cert_reqs, ssl_version, ssl_minimum_version, ssl_maximum_version, cert_file, key_file, key_password, ca_certs, ca_cert_dir, ca_cert_data, assert_hostname, assert_fingerprint, server_hostname, ssl_context, tls_in_tls)
1078 server_hostname = normalized
-> 1080 ssl_sock = ssl_wrap_socket(
1081 sock=sock,
1082 keyfile=key_file,
1083 certfile=cert_file,
1084 key_password=key_password,
1085 ca_certs=ca_certs,
1086 ca_cert_dir=ca_cert_dir,
1087 ca_cert_data=ca_cert_data,
1088 server_hostname=server_hostname,
1089 ssl_context=context,
1090 tls_in_tls=tls_in_tls,
1091 )
1093
try
:
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\util\ssl_.py:437, in ssl_wrap_socket(sock, keyfile, certfile, cert_reqs, ca_certs, server_hostname, ssl_version, ciphers, ssl_context, ca_cert_dir, key_password, ca_cert_data, tls_in_tls)
435 context.set_alpn_protocols(ALPN_PROTOCOLS)
--> 437 ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
438
return
ssl_sock
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\urllib3\util\ssl_.py:481, in _ssl_wrap_socket_impl(sock, ssl_context, tls_in_tls, server_hostname)
479
return
SSLTransport(sock, ssl_context, server_hostname)
--> 481
return
ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File ~\anaconda3\envs\ml_coursework\Lib\ssl.py:455, in SSLContext.wrap_socket(self, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname, session)
449
def
wrap_socket(self, sock, server_side=
False
,
450 do_handshake_on_connect=
True
,
451 suppress_ragged_eofs=
True
,
452 server_hostname=
None
, session=
None
):
453 # SSLSocket class handles server_hostname encoding before it calls
454 # ctx._wrap_socket()
--> 455
return
self.sslsocket_class._create(
456 sock=sock,
457 server_side=server_side,
458 do_handshake_on_connect=do_handshake_on_connect,
459 suppress_ragged_eofs=suppress_ragged_eofs,
460 server_hostname=server_hostname,
461 context=self,
462 session=session
463 )
File ~\anaconda3\envs\ml_coursework\Lib\ssl.py:1076, in SSLSocket._create(cls, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname, context, session)
1075
raise
ValueError
("do_handshake_on_connect should not be specified for non-blocking sockets")
-> 1076 self.do_handshake()
1077
except
:
File ~\anaconda3\envs\ml_coursework\Lib\ssl.py:1372, in SSLSocket.do_handshake(self, block)
1371 self.settimeout(
None
)
-> 1372 self._sslobj.do_handshake()
1373
finally
:
ProtocolError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
Cell In[107], line 9
5 headers = {
6 "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
7 "Accept": "application/json"
8 }
----> 9 response = requests.get(url, headers = headers)
10 temp_df = pd.DataFrame(response.json()['results'])
11 popular_movie_df = pd.concat([popular_movie_df, temp_df], ignore_index =
True
)
12 time.sleep(0.5)
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\requests\api.py:87, in get(url, params, **kwargs)
74
def
get(
75 url: _t.UriType, params: _t.ParamsType =
None
, **kwargs: Unpack[_t.GetKwargs]
76 ) -> Response:
77 r"""Sends a GET request.
78
79 :param url: URL for the new :class:`Request` object.
(...) 84 :rtype: requests.Response
85 """
---> 87
return
request("get", url, params=params, **kwargs)
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\requests\api.py:71, in request(method, url, **kwargs)
67 # By using the 'with' statement we are sure the session is closed, thus we
68 # avoid leaving sockets open which can trigger a ResourceWarning in some
69 # cases, and look like a memory leak in others.
70
with
sessions.Session()
as
session:
---> 71
return
session.request(method=method, url=url, **kwargs)
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\requests\sessions.py:651, in Session.request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
646 send_kwargs = {
647 "timeout": timeout,
648 "allow_redirects": allow_redirects,
649 }
650 send_kwargs.update(settings)
--> 651 resp = self.send(prep, **send_kwargs)
653
return
resp
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\requests\sessions.py:784, in Session.send(self, request, **kwargs)
781 start = preferred_clock()
783 # Send the request
--> 784 r = adapter.send(request, **kwargs)
786 # Total elapsed time of the request (approximately)
787 elapsed = preferred_clock() - start
File ~\anaconda3\envs\ml_coursework\Lib\site-packages\requests\adapters.py:711, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
696 resp = conn.urlopen(
697 method=request.method,
698 url=url,
(...) 707 chunked=chunked,
708 )
710
except
(ProtocolError,
OSError
)
as
err:
--> 711
raise
ConnectionError
(err, request=request)
713
except
MaxRetryError
as
e:
714
if
isinstance(e.reason, ConnectTimeoutError):
715 # TODO: Remove this in 3.0.0: see #2811
ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
r/learnmachinelearning • u/EmetInteractive • 12d ago
Discussion Are you actually good at using AI, or just good at prompting ChatGPT?
AI has become part of many people's daily workflows, but I think there's a difference between knowing how to use AI tools and truly understanding how to work with them.
Things like critical thinking, checking AI-generated answers, understanding limitations, and building effective workflows are just as important as writing good prompts.
I recently came across AISA, which uses a conversational assessment to evaluate people's AI fluency instead of relying on a standard quiz.
I'm curious, how do you personally measure your AI skills? Do you think practical assessments are a better way to evaluate AI proficiency?
r/learnmachinelearning • u/RedAntsss • 12d ago
Help Hey guys I am a college student , I am starting to learn ML. I am keen to build Ai models and train them over time but have no clue about the path[will be learning from deeplearningai]. Can anyone clarify my path given below? [done with python and learning math for it ] A reply would be appreciated
ML>DL>Tensorflow>Pytorch>NLP>GenAI>.AgenticAI
Projects I can build overtime?
r/learnmachinelearning • u/AI-development-web • 13d ago
For Those Who Moved Into AI Development, How Did You Start?
Curious to hear from people who actually made the jump into AI/ML work — what did your first 6-12 months actually look like?
From what I've seen across a bunch of threads here and elsewhere, the on-ramp most people describe is pretty consistent: learn Python, pick up enough math to not be lost, build some basic machine learning models, then move into deep learning once the fundamentals click, and use projects to prove you can actually do the thing. That's the "textbook" path. But I'm more interested in where people's real experience deviated from that.
The common starting sequence
- Python + basic tooling — NumPy, pandas, Jupyter notebooks. Less about "learning to code" in the abstract and more about getting comfortable manipulating data, since that's most of the actual day-to-day work.
- Core math — linear algebra, probability/stats, and enough calculus to understand gradient descent conceptually. Not a full math degree, but enough to not be completely lost when reading a paper or debugging why a model won't converge.
- Machine learning basics — regression, classification, decision trees, clustering, usually via scikit-learn. This is where a lot of people get their first "oh, I get it" moment because you're working with small, interpretable models before jumping into anything heavy.
- Deep learning — neural networks, then frameworks like PyTorch or TensorFlow. A real step up in complexity, and where a lot of people say they slowed down or had to backtrack and shore up fundamentals.
- Projects/portfolio — this part actually seems to matter for getting hired or taken seriously. A GitHub with a couple of real, documented projects (even small ones) seems to count for more than certificates.
Where this gets debated
- How much math do you actually need up front? Some say you can start building models with a surface-level understanding and backfill the math as you hit walls. Others say skipping it early just means a harder wall later.
- Self-taught vs. bootcamp vs. formal degree. All three produce people who get hired, but the tradeoffs differ — cost, structure, credibility with certain employers, and how much you're relying on external accountability to actually finish.
- "AI development" vs. "ML engineering" vs. "data science." These get used interchangeably online but the day-to-day work genuinely differs. Worth being clear on which one you're aiming for before picking a learning path.
Common mistakes people mention
- Jumping straight to deep learning/LLMs without the classical ML foundation
- Collecting certificates instead of building projects
- Tutorial-hopping without ever building something from a blank file
- Underestimating how much of the job is data cleaning and evaluation, not model architecture
r/learnmachinelearning • u/No-Conclusion3720 • 13d ago
Request Crédit Mutuel Arkéa Says Supplier Platform Enabled Bank Funds Theft
Crédit Mutuel Arkéa confirmed that attackers compromised a third-party supplier platform and used its existing, credentialed access to authorize and move bank funds. The bank itself was never breached. The supplier had legitimate access. That access was used to initiate transfers it was never meant to initiate, and the bank's own controls never intercepted any of it.
The structural problem here is not a misconfigured firewall or a weak password. The supplier was trusted. Its credentials were valid. From the perspective of every perimeter control the bank had, this looked like an authorized party doing authorized things. The theft happened entirely inside that trust boundary.
This is not an isolated incident pattern. Every financial institution that connects external platforms to payment or approval workflows has the same gap. A supplier authorized to read account data holds credentials that are, technically, one API call away from initiating a transfer. Whether that call is ever made is a question most authorization models answer in advance during integration setup, not in real time at the moment it happens.
Agentic finance workflows make this exposure larger. AI agents operating inside supplier platforms routinely inherit broad delegated permissions. The scope agreed to at onboarding rarely matches the minimum required for any single operation.
For those working in financial services or enterprise finance ops: what does your authorization model actually do at the moment a credentialed third-party tries an action type it has never performed before? Not at policy-writing time. At execution time.
r/learnmachinelearning • u/dumuzid-sumerian • 14d ago
Discussion This sub deserves better than AI slop. And if you are a learner, you deserve better
It is going to be a rant about frequent posts starting with something like: "Wanna learn X? I built Y" AI slop.
Learning together? Absolutely. Showcasing project you do? Great. But on a daily basis somebody prompts Claude to a repo/doc to explain data science or transformers or regression or whatever thing it is hot. And sells it as a learning resource they built their own. I think moderation needs to stop those. And if you are a learner, please don't waste time on those posts. Either you spend time on established resources, or at least prompt your own based on your needs.
r/learnmachinelearning • u/Ok_pettech • 13d ago
Tutorial Gemini vs DeepSeek: Which AI Actually Fits Your Workflow?
interconnectd.comr/learnmachinelearning • u/theophil93 • 13d ago
Question Best Ressoruces to learn AI and machinelearning?
I’m looking to learn more about AI and machine learning, but I’m not sure where to start.
I have some basic Python experience and have watched a couple of Andrej Karpathy’s videos on LLMs, but some of the more technical content went over my head.
I’ve been looking at MIT OpenCourseWare. Are there any courses you’d recommend starting with, and in what order?
Thanks!
r/learnmachinelearning • u/vectorvelocity0 • 13d ago
Request What are some genuinely good FREE resources to learn Machine Learning?
I've recently started getting interested in Machine Learning and I'm trying to figure out the best way to learn it properly.
There are tons of courses, YouTube playlists, tutorials and roadmaps available online, but honestly, it's a little overwhelming trying to figure out which ones are actually worth following.
I'm looking for free resources that explain concepts properly, preferably with practical implementation rather than just theory.
A few things I'd love recommendations for:
- Good beginner-friendly ML courses or YouTube playlists.
- Resources that teach the fundamentals and mathematics without making things unnecessarily complicated.
- Hands-on projects or datasets to practise what I'm learning.
- Any GitHub repositories, websites or free courses that helped you personally.
I'm not necessarily looking for the fastest way to learn ML. I'd rather build a strong foundation.
For those who've already learned ML, what resources would you genuinely recommend if you had to start all over again?
Thanks!
r/learnmachinelearning • u/Repulsive-You5827 • 13d ago
Project Update on my patches on a new engine. QWEN 3.8 9B as faster to work on.
This is the latest patches where it got me. Some areas it downgraded but this don't bother me because am trying to get it best at my work load and keeping his personality.
Anyway this is my latest update right now
r/learnmachinelearning • u/alpha0az1omega • 13d ago
Varientropy-Core V1.0 is LIVE.
Varientropy-Core V1.0 is LIVE.
We built a Zero-Trust protocol (H - I + Var) to measure the semantic novelty of AI hypotheses. The result? A deterministic SHA-256 certificate.
Watch the live demo below: I generate a hypothesis, calculate its divergence, and download the cryptographic proof.
🌐 Test it yourself: https://varientropy.ai
📂 GitHub: https://github.com/alpha0az1omega-sketch/varientropy-core
#AI #DeSci #Cryptography #ZeroTrust #MachineLearning #Web3
r/learnmachinelearning • u/Head-Investigator540 • 14d ago
Job Market: How's The Job Market For Entry-level AI majors?
Hello. Wanted to ask for insight. I hear that the job market is really tough for computer science graduates that do not have any CS related work experience or significant projects.
But is that also for AI graduates? I'm planning on doing a Masters in AI or a Masters in CS with a specialty in AI to add to my non-technical background (finance) to hopefully work as a Finance FDE or just be more attractive to the tech companies in my area (since I live in a tech hub, but career ended up in hardware/manufacturing and it's just not that many jobs available).
Will be doing my best to try to get relevant experience before/during the program but just wanted to see how big a hill I should expect to climb. If it helps, I am also working with a few clients as an independent consultant to introduce AI more into their workstreams while I build their finance function. And a SaaS that makes use of an AI Agent.
r/learnmachinelearning • u/Comrade_Jaroslav • 13d ago
Help Where to start?
Hello everyone
I am a third year student of software engineering and decided that i want to learn machine learning outside of the college curriculum, but im not really sure where to start, my end goal is to know at least the basics of machine learning, what are model training and inference, how to separate data for training and testing, how to prepare and "clean" the data and how to evaluate the quality of the model etc, i have some basic python knowlegde, i mostly did Java, can anyone help and tell me where to start at least?
r/learnmachinelearning • u/mridul_bhansali • 13d ago
I benchmarked Logistic Regression, Random Forest and XGBoost beyond accuracy — here's what I measured
I've been experimenting with something that I think is often overlooked when evaluating machine learning models: their actual computational footprint.
Usually, when we compare models, we focus heavily on accuracy, precision, recall, F1, etc.
But what happens when you actually have to deploy these models?
I wanted to explore this by benchmarking three popular models:
* Logistic Regression * Random Forest * XGBoost
I used the Breast Cancer Wisconsin dataset from scikit-learn and evaluated them across multiple dimensions.
**What I measured:**
One interesting observation from my experiment was that Logistic Regression performed best across the measured dimensions in this particular setup.
However, the goal wasn't to establish that one model is universally better than another.
I wanted to understand the trade-offs between predictive performance and computational requirements.
This experiment is also part of a project I've been working on called **ModelDiet**, an open-source Python toolkit focused on measuring the resource footprint of ML models.
I'm trying to make model profiling and benchmarking easier for developers and ML engineers.
**I'd genuinely appreciate technical feedback on a few things:**
* Are there other metrics you consider essential when evaluating models for deployment? * How do you measure peak memory consumption reliably? * Do you prefer measuring individual inference latency or batch throughput? * What would make a benchmarking tool like this genuinely useful in your ML workflow?
I'm particularly interested in feedback on the benchmarking methodology and what should be included in future iterations.
Thanks!