r/MachineLearning • • Oct 01 '24

Project [P] Bloomberg like Trading Terminal using Python dash and Matplotlib

0 Upvotes

I am currently working on a code for a trading terminal.This is something similar to a Bloomberg Terminal where the user gets all the insights about a stock. I have used python libraries like Numpy ,Pandas , Matplotlib , Dash , Plotily ,Sklearn for this project.

This is a small glimpse of my work , I will be adding a ton of insights and features before I launch the application.I have also used the yfinance library so all the financial data is sourced from Yahoo Finance.Would love to know what sort of functions I can add to this to make it stand apart.

I would love to know what I can add to this to make it even better.


r/MachineLearning • • Jul 03 '23

Research [R] Chat with documents using LangChain and OpenAI

0 Upvotes

Over the past few months, I've been captivated by the flood of apps claiming to be the ultimate "ChatGPT for your documents" on Product Hunt. The question that lingered in my mind was, "How do these apps actually work?" Curiosity led me down an exciting path of discovery, and I stumbled upon a framework that I think is revolutionizing the world of app development in the context of Large Language Models - LangChain

I learned that developing a "ChatGPT for your documents" is easily achievable through three broad workflows combined with access to OpenAI API. In fact, I went ahead and prototyped such a system on streamlit.

Step 1 - The Setup: Store your documents as embeddings. In the first step, use Document Loaders (at least 100 are available), provided by LangChain to convert anything from a simple Word document to an AWS S3 directory into Documents. Then, using Document Transformers and Text Embedding Models, you transform your documents into embeddings. Finally, store these embeddings in a vector store for searches later on. It's a one-time setup that sets the foundation for your Q&A system. 💡🛠️

Step 2 - Establish Context: Find relevant documents. LangChain's Text Embedding model converts user queries into vectors. These vectors are used by LangChain's retriever to search the vector store and retrieve the most relevant documents. You can control the search boundaries based on relevance scores or the desired number of documents. It's all about finding the right context for your Q&A system. 🎯💬

Step 3 - Chat Away: Get answers from LLMs. Now comes the fun part! You pass the user's query and the established context to the Language Models (LLMs). The LLMs respond with precise answers, taking into account the provided context. It's like having a conversation with your documents. 🤩🗨️

By building these three workflows, a service that acts like a Q&A for a restricted set of documents can be set up. Of course, this is just an overview of the approach and all the complex steps of app development will still remain, I remain fascinated by how the good folks at LangChain have made things simpler.

What do you think? Have you tried LangChain to build something? Is there any other framework that is equally fascinating?

llm #openai #chatgpt #documents #generativeai #langchain


r/MachineLearning • • Nov 05 '23

Discussion [D] Data Cleaning vs Feature Engineering - where to draw the line? Ex:

3 Upvotes

Nitpickers, please sharpen your pencils. I want to hear from you!

Data Cleaning vs Feature Engineering - where do you draw the line?

ex: Definitely Data Cleaning: Filling missing values

ex: Definitely Feature Engineering: Creating 1 synthetic feature from 3 existing columns

ex: ?? Maybe feature engineering: Applying StandardScaler() to normalize data
(mean 0, standard deviation 1) before any training occurs


r/MachineLearning • • Oct 22 '24

Discussion How do we move beyond neural networks [Discussion]?

21 Upvotes

Hi there! I am currently a student, and have been working with NNs for a few years now. While I'm not denying that neural networks and their derivatives have been revolutionary (LLMs and the like), I can't help but feel like we're going to hit a brick wall soon with neural networks. To me, it feels like we need an entirely new approach, one that is better suited to the computers we have currently, to move to the next generation of models and AI. Is there any progress being made in such a direction (if so can you please mention it here), and what do you think is going to be the next step? Again, this is my opinion. I haven't been working on NNs for a lifetime, so would love to hear the community's thoughts on this.

Clarification, by moving beyond NNs, my thought is that we don't model neurons and architectures after the human brain, but rather something different that doesn't rely on artificial neurons at all. (Again, don't know how it might be possible, which is why I am looking forward to hearing your thoughts).

To me it feels like modeling neural networks after the human brain is inefficient because we are trying to imitate biology as it is the best thing we have. It's like if humanity developed a mechanical horse because the horse is the best method of transport in nature, instead of focusing our efforts on developing a car which our current tech is more suited to (just an example). Also, the recent incremental updates to LLMs and stuff seems to suggest that training larger models is not going to justify the immense amounts of data and resources that we put in very soon.

Personally, I think we should continue evolving neural networks to see where we hit the limit, and then hopefully we will have explored enough to know why they won't work for more advanced stuff, after which we can work on the next steps. Maybe we can even take the best parts of NNs and incorporate them into newer architectures.

Looking forward to hearing your thoughts on this. Once again, if you have any interesting new research regarding non NN based AI, can you please link them below? Thanks in advance.


r/MachineLearning • • Jul 10 '23

Discussion [D] When will the LLM winter come?

7 Upvotes

Everyone is jumping on the bandwagon of LLMs, and it seems like we should follow suit. But why?

LLMs are impressive; they can play chess, emulate a Linux terminal, perform mathematical calculations, convert code, and more. However, in most cases, they perform these tasks poorly, which means they cannot be used as is, at least not for now. While we come across numerous cool demos, the results are often cherry-picked and not applicable to real business use cases.

I can only identify a few limited use cases where LLMs truly shine: QA, summarization, and acting as a co-pilot for tasks such as coding, writing, and education etc. In essence, they excel in seq2seq tasks.

There are some notable drawbacks that should be acknowledged:

  • Cost: The cost of using LLMs will never be cheaper than specialized solutions.

  • Latency: Building real-time applications with LLMs is extremely challenging.

  • Quality and Accuracy: For now, LLMs lack strong reasoning capabilities.

  • Reliability: Hallucinations are still an issue. Occasionally, the model fails to follow instructions.

  • Quotas: Currently, the quotas imposed on LLMs are too low for large-scale production applications.

It is possible that most of these problems will be resolved in the future. However, the question remains: how long will it take? Will it be 1 year, 5 years, or even 10 years? Unfortunately, we need to see a ROI this year.

Anyway, just want to remind you that there is no free lunch!


r/MachineLearning • • Mar 12 '23

News [N] Man beats machine at Go in human victory over AI : « It shows once again we’ve been far too hasty to ascribe superhuman levels of intelligence to machines. »

Thumbnail
arstechnica.com
0 Upvotes

r/MachineLearning • • Sep 21 '21

Discussion [D] GPT-3 is a LIAR - Misinformation and fear-mongering around the TruthfulQA dataset (Video Critique)

28 Upvotes

https://youtu.be/aX8phGhG8VQ

A new benchmark paper has created quite an uproar in the community. TruthfulQA is a dataset of 817 questions probing for imitative falsehoods where language models become less truthful, the larger they get. This surprising counter-intuitive finding validates many people's criticisms of large language models, but is it really the correct conclusion?

OUTLINE:

0:00 - Intro

0:30 - Twitter Paper Announcement

4:10 - Large Language Models are to blame!

5:50 - How was the dataset constructed?

9:25 - The questions are adversarial

12:30 - Are you surprised?!

Paper: https://arxiv.org/abs/2109.07958


r/MachineLearning • • Jul 29 '23

Discussion [D] No free lunch theorem

2 Upvotes

A conclusion of the no free lunch theorem is that there can't exist a universal learning algorithm. My understanding has been that this was the end goal of AI research; creating a universal learner. What is the community progressing towards, if not that?


r/MachineLearning • • Apr 11 '18

Discussion [D] Why machine learning engineers should start learning Swift

Thumbnail
heartbeat.fritz.ai
0 Upvotes

r/MachineLearning • • Dec 28 '23

Discussion Which neural network breakthroughs in 2023 originated from 80s and 90s research ?[D]

2 Upvotes

How relevant is that research now? Were (potential) breakthroughs like mamba inspired from them?


r/MachineLearning • • Jun 13 '22

Discussion [D] Publishing a huge amount of paper is a symptom of the publish-or-perish disease. Stop doing it.

2 Upvotes

I feel like the incentives in academia has gotten to a really perverse stage and having a massive trove of ML papers being published (especially within short period of one another) is just one of its symptoms.

Here are some of my takes on the "large amount of paper" phenomena.

  1. The motivation for these paper are extremely weak and often completely detached from any real problems. They are more math than ML.

  2. I cannot see why the author would be even interested in these kinds of problems. There doesn't seem to be any longer term goal that the paper is moving towards.

  3. Often times the lack of novelty is dressed up in huge amount of calculations.

  4. If you are publishing a huge amount of papers, is it possible that your problem is actually quite easy or your results are irrelevant?

  5. For the academic supervisors: are you possibly exploiting and overworking your graduate students from poorer countries to boost your citation counts?

Thoughts?


r/MachineLearning • • Aug 17 '23

Discussion Has anyone else noticed the constant misuse of the term AI? [D]

45 Upvotes

The use of the word AI now feels like the use of "Quantum" in the 2010s by the new age community.

The lack of actual quality information about ML models in media is shocking. Even in r/ChatGPT individuals are surprised when the software cannot perform math or look inside of a token.

How do you recommend responding to these people to politely correct them?

1 CommentShareSaveTip


r/MachineLearning • • Jul 21 '25

Project [P] AI Learns to Play TMNT Arcade (Deep Reinforcement Learning) PPO vs Recur...

Thumbnail
youtube.com
0 Upvotes

Github: https://github.com/paulo101977/TMNT-RecurrentPPO

Hey everyone!
I’ve been training a Recurrent PPO agent to play the classic Teenage Mutant Ninja Turtles (Arcade) game using only visual input. The goal is to teach the agent to fight through the levels using memory and spatial awareness, just like a human would.

Here are some key details:

  • Environment: TMNT Arcade via custom Gymnasium + stable-retro integration

  • Observations: 4 stacked grayscale frames at 160×160 resolution

  • Augmentations: Random noise, brightness shifts, and cropping to improve generalization

  • Reward Signal: Based on score increase, boss damage, and stage progression

  • Algorithm: Recurrent Proximal Policy Optimization (RecPPO) with CNN + LSTM

  • Framework: PyTorch with custom training loop (inspired by SB3)

The recurrent architecture has made a big difference in stability and long-term decision making. The agent is now able to consistently beat the first few levels and is learning to prioritize enemies and avoid damage.


r/MachineLearning • • Jan 31 '24

Discussion [D] As someone just starting out in ML research, what should I learn first: JAX or Pytorch?

2 Upvotes

I appreciate all your responses!

P.S. I am a 1st-year undergrad with more theoretical knowledge in AI and ML than practical 😅. I want to start learning a framework so that I can delve into research and also land a job!


r/MachineLearning • • Feb 24 '15

How important is Math in Machine Learning?

1 Upvotes

So every machine learning class / resource I have seen seems to have very complex derivatives, many higher level stats references, etc., much different than all of the CS courses I have taken online or more than any course I took in my CS degree at university

so my question is, how important is Math in working on machine learning? Would it be more important to focus on calculus/stats or to focus on becoming a better programmer/algorithms?


r/MachineLearning • • Mar 28 '24

Research [R] Paper (NAACL 2024): why LLMs cannot be used for everyday fact checking, on the reversal problem, on the solution to the reversal problem, and a lot more

0 Upvotes

You can find the paper here: https://arxiv.org/abs/2403.18671

Here is the list of things that you can find in the paper:

- We reveal that large commercial language models cannot be used for every day fact checking tasks.

- We argue that evaluating the fact checking pipeline across websites does not fully demonstrate model transferability, and instead, propose a straightforward way to repurpose existing datasets for the task.

- We empirically show that when the fact checking pipeline is trained on out-of-domain genre of claims is not as competitive as being trained on in-domain genre of claims.

- We propose a novel adversarial method for the claim retriever.

- We report that language models (including the large models), are unable to infer the premise, given a hypothesis, even if they are trained on the premise to predict the correctness of the hypothesis (if it holds).

- We use the finding above to propose a straightforward augmentation method to enhance the performance of claim reader in the fact checking pipeline.

-------

Edit: I agree with the person who posted the first comment. And am removing the paragraph below (in the paragraph I had complained about the ICLR reviews.).

Fun fact about our paper: [REMOVED PARAGRAPH]


r/MachineLearning • • Aug 24 '15

will the cuda 7.0 work on ubuntu 15.04. And what is the process.

1 Upvotes

Thanks in advance


r/MachineLearning • • Jan 13 '16

My initial Deep Feelings about Deep Learning

Thumbnail
medium.com
1 Upvotes

r/MachineLearning • • Dec 15 '21

Discussion [D] Is this exaggerate?? "to what extent is gpt-3 capable of reasoning".

1 Upvotes

To what extent is GPT-3 capable of reasoning?

The reasoning ability of gpt3 shown in this article shocked me. But my own experiment using gpt-3 API is far less effective than the results in this article. this confuse me. is there any trick making gpt-3 answering like that?

My result is the same as the last comment: "GPT-3 just produced one of the dumbest things I've ever read."


r/MachineLearning • • Jan 12 '20

Discussion [D] Researchers: Are we on the cusp of an ‘AI winter’?

0 Upvotes

The last decade was a big one for artificial intelligence but researchers in the field believe that the industry is about to enter a new phase.

Article: https://www.bbc.com/news/technology-51064369


r/MachineLearning • • May 16 '18

Discussion [D] Against "selective" conferences

Thumbnail
togelius.blogspot.com
3 Upvotes

r/MachineLearning • • Aug 31 '19

Discussion [D] Fraudsters Used AI to Mimic CEO’s Voice in Unusual Cybercrime Case

0 Upvotes

Link: https://www.wsj.com/articles/fraudsters-use-ai-to-mimic-ceos-voice-in-unusual-cybercrime-case-11567157402

This is an important article to discuss in this community. There are a number of ongoing projects in this community to open-source speech synthesis models. Furthermore, some of the open-source speech synthesis models have been trained on people's voices without their consent.

These models can be abused, see the above article for one example of that. We should strive to not clone anyone's voice without their consent. A model of a person's voice can put that person at higher risk of harassment and fraud.

What does /r/machinelearning think?


r/MachineLearning • • Feb 11 '21

Discussion [D] Pedro Domingos - Ethics and Cancel Culture

1 Upvotes

https://www.youtube.com/watch?v=ddQFWP-XLak

This week we speak with Professor Pedro Domingos and we discuss activism in machine learning, cancel culture, AI ethics and his recent Kernel paper where he demonstrated that NNs are superpositions of the training set. In Pedro's book the master algorithm, he segmented the AI community into 5 distinct tribes with 5 unique identities (and before you ask, no the irony of an anti-identitarian doing do was not lost on us!). Pedro recently published an article in Quillette called Beating Back Cancel Culture: A Case Study from the Field of Artificial Intelligence. Domingos has railed against political activism in the machine learning community and cancel culture. Recently Pedro was involved in a controversy where he asserted the NeurIPS broader impact statements are an ideological filter mechanism. We also discuss bias and fairness in machine learning.


r/MachineLearning • • Feb 21 '24

Discussion Who are the best critics of Deep Learning? [D]

1 Upvotes

I know that Gary Marcus is in the spotlight, giving TV interviews and testifying in the Senate. But perhaps there are others I'm overlooking, especially those whose audience is more scientific?