Artificial intelligence (AI)
Në shqip: Inteligjencë artificiale (IA)
ShpjegimiSQ
Inteligjenca artificiale janë programe që mësojnë nga shumë shembuj, në vend që t'u shkruhet çdo rregull një nga një. Kështu njohin foto, përkthejnë tekste ose u përgjigjen pyetjeve — por mund të gabojnë, ndaj kontrolloji gjithmonë.
EnglishEN
Artificial intelligence means programs that learn from lots of examples instead of having every rule written for them. That's how they recognise photos, translate text or answer questions — but they can make mistakes, so always double-check.
Si ta mendosh
Si një portier i ri që shikon mijëra penallti: me kohë mëson nga cila anë ka gjasa të gjuajë lojtari — jo sepse ia tha dikush, por nga përvoja. Prapë, ndonjëherë hidhet në anën e gabuar.
Lexoje në anglisht
Like a young goalkeeper watching thousands of penalties: over time they learn which side a player is likely to shoot — not because someone told them, but from experience. Still, sometimes they dive the wrong way.
Shembull kodipython
# Kompjuteri "mëson" nga shembujt, jo nga rregullat
from sklearn.tree import DecisionTreeClassifier
modeli = DecisionTreeClassifier().fit([[1], [2], [8], [9]], ["pak", "pak", "shumë", "shumë"])
print(modeli.predict([[7]])) # ['shumë']