Machine Learning with Python
68.3K subscribers
1.29K photos
95 videos
169 files
952 links
Learn Machine Learning with hands-on Python tutorials, real-world code examples, and clear explanations for researchers and developers.

Admin: @HusseinSheikho || @Hussein_Sheikho
Download Telegram
This media is not supported in your browser
VIEW IN TELEGRAM
The #Python library #PandasAI has been released for simplified data analysis using AI.

You can ask questions about the dataset in plain language directly in the #AI dialogue, compare different datasets, and create graphs. It saves a lot of time, especially in the initial stage of getting acquainted with the data. It supports #CSV, #SQL, and Parquet.

And here's the link 😍

👉 https://t.iss.one/CodeProgrammer
Please open Telegram to view this post
VIEW IN TELEGRAM
13👍2🔥1
Convert any long article or PDF into a test in a couple of seconds!

Mini-service: we take the text of the article (or extract it from PDF), send it to GPT and receive a set of test questions with answer options and a key.

First, we load the text of the material:
# article_text — this is where we put the text of the article
with open("article.txt", "r", encoding="utf-8") as f:
    article_text = f.read()

# for PDF, you can extract the text in advance with any library (PyPDF2, pdfplumber, etc.)


Next, we ask GPT to generate a test:
prompt = (
    "You are an exam methodologist."
    "Based on this text, create 15 test questions."
    "Each question is in the format:\n"
    "1) Question text\n"
    "A. Option 1\n"
    "B. Option 2\n"
    "C. Option 3\n"
    "D. Option 4\n"
    "Correct answer: <letter>."
    "Do not add explanations and comments, only questions, options, and correct answers."
)
response = client.chat.completions.create(
    model="gpt-4o",
    messages=[
        {"role": "system", "content": prompt},
        {"role": "user", "content": article_text}
    ])
print(response.choices[0].message.content.strip())


🔥 Suitable for online courses, educational centers, and corporate training — you immediately get a ready-made bank of tests from any article.

🚪 https://t.iss.one/CodeProgrammer
Please open Telegram to view this post
VIEW IN TELEGRAM
6👍2
It's both funny and sad... #memes

@codeprogrammer
Please open Telegram to view this post
VIEW IN TELEGRAM
🐳62👍2😁2👎1
Forwarded from Machine Learning
100+ LLM Interview Questions and Answers (GitHub Repo)

Anyone preparing for #AI/#ML Interviews, it is mandatory to have good knowledge related to #LLM topics.

This# repo includes 100+ LLM interview questions (with answers) spanning over LLM topics like
LLM Inference
LLM Fine-Tuning
LLM Architectures
LLM Pretraining
Prompt Engineering
etc.

🖕 Github Repo - https://github.com/KalyanKS-NLP/LLM-Interview-Questions-and-Answers-Hub

https://t.iss.one/DataScienceM
Please open Telegram to view this post
VIEW IN TELEGRAM
6👍3
I'm happy to announce that freeCodeCamp has launched a new certification in #Python 🐍

» Learning the basics of programming
» Project development
» Final exam
» Obtaining a certificate

Everything takes place directly in the browser, without installation. This is one of the six certificates in version 10 of the Full Stack Developer training program.

Full announcement with a detailed FAQ about the certificate, the course, and the exams
Link: https://www.freecodecamp.org/news/freecodecamps-new-python-certification-is-now-live/

👉 @codeprogrammer
Please open Telegram to view this post
VIEW IN TELEGRAM
8
1. What will be the output of the following code?

def add_item(item, lst=None):
if lst is None:
lst = []
lst.append(item)
return lst

print(add_item(1))
print(add_item(2))


A. [1] then [2]
B. [1] then [1, 2]
C. [] then []
D. Raises TypeError
Correct answer: A.

2. What is printed by this code?

x = 10
def func():
print(x)
x = 5

func()


A. 10
B. 5
C. None
D. UnboundLocalError
Correct answer: D.

3. What is the result of executing this code?

a = [1, 2, 3]
b = a[:]
a.append(4)
print(b)


A. [1, 2, 3, 4]
B. [4]
C. [1, 2, 3]
D. []
Correct answer: C.

4. What does the following expression evaluate to?

bool("False")


A. False
B. True
C. Raises ValueError
D. None
Correct answer: B.

5. What will be the output?

print(type({}))


A. <class 'list'>
B. <class 'set'>
C. <class 'dict'>
D. <class 'tuple'>
Correct answer: C.

6. What is printed by this code?

x = (1, 2, [3])
x[2] += [4]
print(x)


A. (1, 2, [3])
B. (1, 2, [3, 4])
C. TypeError
D. AttributeError
Correct answer: C.

7. What does this code output?

print([i for i in range(3) if i])


A. [0, 1, 2]
B. [1, 2]
C. [0]
D. []
Correct answer: B.

8. What will be printed?

d = {"a": 1}
print(d.get("b", 2))


A. None
B. KeyError
C. 2
D. "b"
Correct answer: C.

9. What is the output?

print(1 in [1, 2], 1 is 1)


A. True True
B. True False
C. False True
D. False False
Correct answer: A.

10. What does this code produce?

def gen():
for i in range(2):
yield i

g = gen()
print(next(g), next(g))


A. 0 1
B. 1 2
C. 0 0
D. StopIteration
Correct answer: A.

11. What is printed?

print({x: x*x for x in range(2)})


A. {0, 1}
B. {0: 0, 1: 1}
C. [(0,0),(1,1)]
D. Error
Correct answer: B.

12. What is the result of this comparison?

print([] == [], [] is [])


A. True True
B. False False
C. True False
D. False True
Correct answer: C.

13. What will be printed?

def f():
try:
return "A"
finally:
print("B")

print(f())


A. A
B. B
C. B then A
D. A then B
Correct answer: C.

14. What does this code output?

x = [1, 2]
y = x
x = x + [3]
print(y)


A. [1, 2, 3]
B. [3]
C. [1, 2]
D. Error
Correct answer: C.

15. What is printed?

print(type(i for i in range(3)))


A. <class 'list'>
B. <class 'tuple'>
C. <class 'generator'>
D. <class 'range'>
Correct answer: C.
5👍1
Forwarded from ADMINOTEKA
Админотека — это лучший сервис для монетизации твоего канала!

Привет, давай знакомиться. Не самое скромное приветствие получилось, но мы можем подтвердить свои слова.

🌑 Ведь у нас зарабатывают даже самые маленькие каналы с 20 охватами
🌑 Стабильные офферы каждую неделю
🌑 Алгоритмы, рейтинг, защита сделок — и всё это автоматизировано
🌑 Удобные выплаты на привязанный кошелек
🌑 Здесь же можно и купить размещения по самому низкому прайсу на рынке

💸 Подключай свой канал и проверяй на практике. Преврати свой канал в реальный доход вместе с нами!
Please open Telegram to view this post
VIEW IN TELEGRAM
4