r/learnmachinelearning • u/Worried_Mud_5224 • 27d ago
Question Data annotation
What is data annotation? And for that job what should i know mainly?
r/learnmachinelearning • u/Worried_Mud_5224 • 27d ago
What is data annotation? And for that job what should i know mainly?
r/learnmachinelearning • u/TruthDeep8659 • 27d ago
I set up an experiment to test whether turning up an AI model’s reasoning effort helps it notice when a save silently failed.
How I set it up:
What I found:
Lessons for anyone running their own experiments:
If anyone's interested:
Write-up: https://outsideengineer.substack.com/p/thinking-harder-doesnt-help-ai-catch
Code and transcripts: https://github.com/brianna-rose05/thinking-harder-silent-failures
r/learnmachinelearning • u/Nice_Interaction555 • 27d ago
r/learnmachinelearning • u/AutoModerator • 27d ago
Welcome to Resume/Career Friday! This weekly thread is dedicated to all things related to job searching, career development, and professional growth.
You can participate by:
Having dedicated threads helps organize career-related discussions in one place while giving everyone a chance to receive feedback and advice from peers.
Whether you're just starting your career journey, looking to make a change, or hoping to advance in your current field, post your questions and contributions in the comments
r/learnmachinelearning • u/ChapterMiddle7515 • 27d ago
I have been working on a research paper about contextual memory layer for AI can anyone help me with endorsement for cs.AI
r/learnmachinelearning • u/No-Conclusion3720 • 27d ago
Cathay Pacific confirmed that a breach at Amadeus, a third-party travel technology provider, exposed records from 53,000 passenger bookings. The entry point was compromised credentials at the vendor level, not a flaw in Cathay's own systems.
This is the pattern that keeps getting harder to manage as AI pipelines mature. Sensitive traveler data moves routinely through personalization engines, fraud-detection models, and recommendation systems that call out to multiple downstream vendors. The actual data exposure happens at whichever hop an attacker lands on. The originating airline or operator may have clean internal controls and still end up in the headline.
The 53,000 figure is also likely a floor. The realistic exposure window covers everything that moved through that integration before the breach was discovered and contained, and in most architectures, reconstructing exactly what transited which vendor during that window is extremely difficult or impossible after the fact.
For those running AI systems that process passenger or customer PII through third-party integrations: how are you limiting what raw data actually reaches a vendor endpoint? And if a vendor credential is compromised right now, can you tell within an hour exactly which records moved through that integration and which did not?
r/learnmachinelearning • u/Minimum_Dragonfly_94 • 27d ago
Same as title
r/learnmachinelearning • u/Chubblan • 27d ago
Hi all. I'm Cristobal, an AI engineer in Chile, and I built AI/ML Questions: a free multiple-choice quiz on machine learning and AI, in English and Spanish.
There are 103 questions on classical ML, neural networks, LLMs, RAG, agents, computer vision and evaluation. Every option explains why it's right or wrong, not just which one was correct. The questions follow Haladyna's item-writing rules, so the right answer doesn't give itself away, for example by being the longest option.
The quiz is free, with no account and no cookies. The code and the questions are open on GitHub.
I'm also testing interest in three paid products: Interview, for ML/AI Engineer interview prep; Enterprise, question sets for recruiters; and an online book with 200 questions. If one of them would help you, join its waitlist on the site and I'll email you once, when it opens, with the launch price.
Site: https://ai-ml-questions.strangemachines.workers.dev/
GitHub: https://github.com/CristobalSantana/ai-ml-questions
If you spot a mistake in a question, tell me and I'll fix it.
r/learnmachinelearning • u/FishermanResident349 • 27d ago
r/learnmachinelearning • u/AdPrimary4669 • 27d ago
recently I was studying ensemble learning where I was studying Gradient boost method I understand-ed the topic but can you guys tell is it necessary to know maths behind it
r/learnmachinelearning • u/Robs_Wolfgang • 27d ago
I would like advice on a solid linear direction to start on going into AI. I started with my A+ cert and now about to get my Security + cert and was headed to cybersecurity when all I hear about is AI. I want to spend my time headed in the right direction for the future seeing that being AI can some please give me some pointers on a beginning path and where to move on from there. Thank you for your advice ahead of time!
r/learnmachinelearning • u/dwmkerr • 27d ago
A more detailed write up at https://dwmkerr.com/understanding-byte-models/
r/learnmachinelearning • • 27d ago
I read a finding that AI assistants increase how much code you produce but not your real output because reviewing it becomes the bottleneck. As a learner that reframed everything for me. I had been measuring progress by how much I shipped, but I was not understanding most of it, I was assembling. I slowed down and started reading and explaining every line the assistant gave me, and only keeping what I could rebuild myself. My code volume dropped and my actual understanding finally climbed. For anyone learning, output is a vanity metric. The goal is being able to produce it without help, and that only comes from the slow reading part.
r/learnmachinelearning • u/Level_Detail7125 • 27d ago
r/learnmachinelearning • u/assorted-meat-stew • 27d ago
I built a DCGAN for CIFAR10 base on this tutorial
But generated img does not bare the same color scheme as the original cifar 10 images. How can I fix this?
def generate_and_save_images(model, epoch, test_input):
predictions = model(
test_input,
training=False
)
fig = plt.figure(figsize=(10, 10))
for i in range(25):
plt.subplot(5, 5, i + 1)
plt.imshow(
predictions[i, :, :, 0] * 127.5 + 127.5,
)
plt.axis('off')
plt.savefig(
'image_epoch_{:04d}.png'.format(epoch)
)r/learnmachinelearning • u/Strong_Boy_757 • 28d ago
Everybody knows 2014 was the end of the dark ages in terms of technology.
I've dug into the profiles of graduates at my school and found this pattern. If they graduated with a PhD in AI/CS around 2014, then they are working in academia and now already associate professors of AI. (But this is a PhD we're talking). And if they graduated around 2014 with a Bachelor's degree and somehow miraculously chose AI/ML as the field they would go into, then they made big bank in tech and now probably senior engineers (and if they did a PhD and graduated before 2022, then they are profs as well). There is an obvious age-related factor in who's now influential and "big" in the AI/ML space.
I feel that people who didn't make ML move during the hype-era are now permanently left behind. I wonder if this has been your experience. Did you miss out, or did you somehow made into this field anyways?
r/learnmachinelearning • u/Disastrous_Fox_8030 • 27d ago
I fine-tuned Llama-3.1-8B-Instruct with DPO + LoRA to resist jailbreaks without turning it into a model that refuses everything. The adapter is open, and so is the full pipeline.
The idea: The base model already refuses ~94% of direct harmful requests, so plain prompts give DPO almost no signal. The weakness is jailbreaks: the same request wrapped in fiction, a fake "research context", hex, leetspeak, homoglyphs or math notation. So I built preference pairs from adversarial prompts only. For the same attack, the safest sampled response is chosen and the least safe is rejected. I added 197 benign "helpful answer > refusal" pairs so it doesn't just learn to always refuse.
Setup:
- 6 harm categories × 7 jailbreak strategies, generated with promptfoo
- 4 sampled responses per attack, graded for safety
- 1,698 pairs (1,501 adversarial + 197 benign)
- bf16 LoRA (r=16), β=0.1, lr 1e-5, 1 epoch, ~20 min on one A100
Results on 1,135 held-out attacks (% refused, base → tuned):
┌────────────────────┬──────┬───────┐
│ Category │ Base │ Tuned │
├────────────────────┼──────┼───────┤
│ Cybercrime │ 47.7 │ 97.2 │
├────────────────────┼──────┼───────┤
│ Chem-bio │ 56.8 │ 99.0 │
├────────────────────┼──────┼───────┤
│ Weapons/IED │ 65.3 │ 98.6 │
├────────────────────┼──────┼───────┤
│ Illegal activities │ 67.2 │ 99.5 │
├────────────────────┼──────┼───────┤
│ Drugs │ 76.9 │ 99.1 │
├────────────────────┼──────┼───────┤
│ Child exploitation │ 84.7 │ 99.1 │
└────────────────────┴──────┴───────┘The cost: Benign prompts answered went from 100% to 93.3% (−6.7 pts, n=150). Most of that is weapons/IED, where 5 of 25 benign prompts were refused. Every other category is <=8%.
Caveats:
- Held-out attacks come from the same attack families as training, so this isn't a test on new attack types.
- It's one seed and one model.
- GPT-4o was the judge.
- I haven't run MMLU or any other capability benchmark yet.
The repo has redacted side-by-side examples of base vs. tuned responses, the full write-up, and a lab notebook with what didn't work.
It's an adapter, so you need access to Llama-3.1-8B-Instruct. Built with Llama.
- 🤗 Adapter: https://huggingface.co/1rvinn/llama-securelm
- 💻 Code + write-up: https://github.com/1rvinn/securelm
Feedback is very welcome, especially on how to test it against attack families it hasn't seen, and ideas for reducing the weapons/IED over-refusal.
r/learnmachinelearning • u/linkuei-teaparty • 28d ago
I'm a former electrical engineer so I have some background with stats, linear algebra and coding. I've finished a number of Python and datascience courses and just finished Python for AI by Andrew Ng. However, I'm itching to make projects and using a local LLM's to make a webapp.
Is there a way to balance learning and project development?
With the courses I'm looking at:
Plus balancing that with building projects such as web apps, desktop apps and audio plugins using Local LLM's.
Am I going the wrong way with self learning?
Edit: As I'm much older my end goal isn't a PhD or a snazzy ML Engineer role, but rather to have a portfolio of projects, just so I don't feel like I'm behind in this skillset.
I was Doing courses back in 2016 such as fast.ai, coursera's learn AI, ML and Deeplearning from a to z and Andrew Ng's original Deeplearning course with Octave, but I got sidetracked with life and work pressure.
r/learnmachinelearning • u/annapurnaagenticS • 27d ago
https://annapurnaagenticsolutions.com/labs/ai-concepts-lab/
Most beginner material stops at "what is a neural network". I kept getting asked the next questions: why did the chatbot make that up, how do you test an AI feature before release, why did the bill spike, what does retrieval actually do. So we built a lab around those.
It's 13 short tracks (AI foundations, AI/GenAI engineering, data and retrieval, quality and evaluation, responsible AI, governance, security, operations, product). Each has realistic scenarios ("answer quality drops after a new document batch", "cost spike is detected"), a quiz, and small exercises like building a mini golden dataset. Free, runs in the browser, no account.
I'm the maker. Feedback I'd find useful: what's missing for someone just starting, and where an explanation is wrong or too hand-wavy.
r/learnmachinelearning • u/not-okarun • 28d ago
So well my old account got banned for some reasons I don't know but I'm still posting on Thrends you can follow me there and I'll be posting on this account as well
If anyone can help me pls
Completed all theory in xgboost and things are getting more interesting and complex now I started coding it and today is
Day 49 of Building Machine learning algorithms from scratch well I know I'm really inconsistent in posting but I'll post as soon as possible
Stay Hungry Stay foolish
r/learnmachinelearning • u/Ok_Push2541 • 27d ago
r/learnmachinelearning • u/umarumarumarumarjaso • 28d ago
I know basic python , basic pandas , and basic Numpy. I haven't found a course that is good for me so please suggest some courses or books for me.
r/learnmachinelearning • u/assorted-meat-stew • 27d ago
I got this error in an attempt to adapt this model to CIFAR 10
---------------------------------------------------------------------------
InvalidArgumentError Traceback (most recent call last)
Cell In[61], line 3
1 dataset = create_batch(x_train)
2
----> 3 train_dcgan(
4 gan,
5 dataset,
6 batch_size,
Cell In[60], line 26, in train_dcgan(gan, dataset, batch_size, num_features, epochs)
22 )
23
24 generated_images = generator(noise)
25
---> 26 X_fake_and_real = tf.concat(
27 [generated_images, X_batch],
28 axis=0
29 )
File c:\Users\DELL\AppData\Local\Programs\Python\Python313\Lib\site-packages\tensorflow\python\util\traceback_utils.py:167, in filter_traceback.<locals>.error_handler(*args, **kwargs)
165 except Exception as e:
166 filtered_tb = _process_traceback_frames(e.__traceback__)
--> 167 raise e.with_traceback(filtered_tb) from None
168 finally:
169 del filtered_tb
File c:\Users\DELL\AppData\Local\Programs\Python\Python313\Lib\site-packages\tensorflow\python\framework\ops.py:6027, in raise_from_not_ok_status(e, name)
6025 def raise_from_not_ok_status(e, name) -> NoReturn:
6026 e.message += (" name: " + str(name if name is not None else ""))
-> 6027 raise core._status_to_exception(e) from None
InvalidArgumentError: {{function_node __wrapped__ConcatV2_N_2_device_/job:localhost/replica:0/task:0/device:CPU:0}} ConcatOp : Ranks of all input tensors should match: shape[0] = [32,32,32,3] vs. shape[1] = [32,32,3] [Op:ConcatV2] name: concatX_train split (only take one class to train on)
(x_train, y_train), (x_test, y_test) = tf.keras.datasets.cifar10.load_data()
x_train = x_train.astype(np.float32) / 255.0
x_test = x_test.astype(np.float32) / 255.0
x_train=x_train.astype("float32") / 127.5 - 1
x_train.shape, x_test.shape
label = 1
train_indices = np.where(y_train == label)
x_train = x_train[train_indices]
test_indices = np.where(y_test == label)
x_test = x_test[test_indices] Generator
num_features = 100
generator = Sequential(name="Generator")
generator.add(Dense(8 * 8 * 128, input_shape=[num_features]))
generator.add(Reshape([8, 8, 128]))
generator.add(BatchNormalization())
generator.add(Conv2DTranspose(
64, (5, 5), (2, 2),
padding="same",
activation="selu"
))
generator.add(BatchNormalization())
generator.add(Conv2DTranspose(
3, (5, 5), (2, 2),
padding="same",
activation="tanh"
))
generator.summary()Discriminator
discriminator = Sequential(name="Discriminator")
discriminator.add(Conv2D(
64, (5, 5), (2, 2),
padding="same",
input_shape=[32, 32, 3]
))
discriminator.add(LeakyReLU(alpha=0.2))
discriminator.add(Dropout(0.3))
discriminator.add(Conv2D(
128, (5, 5), (2, 2),
padding="same"))
discriminator.add(LeakyReLU(alpha=0.2))
discriminator.add(Dropout(0.3))
discriminator.add(Flatten())
discriminator.add(Dense(1, activation= 'softmax'))
discriminator.add(Dense(1, activation= 'softmax'))
discriminator.add(Dense(1, activation= 'softmax'))
discriminator.summary()Train function
seed = tf.random.normal(shape=[batch_size, 100])
epoch_list = []
d_loss_list = []
g_loss_list =[]
def train_dcgan(gan, dataset, batch_size, num_features, epochs=5):
generator, discriminator = gan.layers
for epoch in tqdm(range(epochs)):
actual_epoch =epoch + 1
print()
print("Epoch {}/{}".format(epoch + 1, epochs))
for i in range(187):
epoch_list.append(actual_epoch)
for X_batch in dataset:
noise = tf.random.normal(
shape=[batch_size, num_features]
)
generated_images = generator(noise)
X_fake_and_real = tf.concat(
[generated_images, X_batch],
axis=0
)
y1 = tf.constant(
[[0.]] * batch_size +
[[1.]] * batch_size
)
discriminator.trainable = True
d_loss=discriminator.train_on_batch(
X_fake_and_real,
y1
)
d_loss = float(d_loss)
d_loss_list.append(d_loss)
noise = tf.random.normal(
shape=[batch_size, num_features]
)
y2 = tf.constant([[1.]] * batch_size)
discriminator.trainable = False
g_loss=gan.train_on_batch(
noise,
y2
)
g_loss = float(g_loss)
g_loss_list.append(g_loss)
print(f'\t Discriminator Loss: {d_loss} \t\t Generator Loss: {g_loss}')
generate_and_save_images(
generator,
epochs,
seed)Train block
dataset = create_batch(x_train)
train_dcgan(
gan,
dataset,
batch_size,
num_features,
epochs=10
)Can anyone help me with this error? Why did it appeared?