Open the app

Programmering Python en AI

Swedish → English Level B1103 cards3 stories

Bygg upp din ordförråd för att koda i Python och utforska AI! Lär dig prata om kodstruktur, bibliotek och nya tekniska framsteg samtidigt som du förbättrar dina programmeringskunskaper. Perfekt för mellannivåelever som vill diskutera tekniska ämnen mer flytande.

Programmering Python en AI

Stories

Lena Optimizes Python Algorithm

English

Lena loves writing code in Python. She has been working on an AI project for a large company, but her algorithm hasn't been optimized yet. "Have you debugged the program yet?" her team asked last week. She said she had processed the datasets efficiently, but the model still needed work. Despite being complex, the project was not impossible. They used an outdated library, so she had to implement a new one. "May we train the models quickly?" she asked. The scientists confirmed they could. Every day, she writes code to analyze data and improve features. He used to debug manually, but now they automate the process. Your project? It might be next!

Neural Network Improves Over Time

English

The scientists were excited about their new neural network. They had built it last month to automate repetitive tasks, but the initial results weren’t accurate. "Have you preprocessed the data correctly?" she asked. He admitted the dataset wasn’t analyzed properly before training. Despite their difficulties, they decided to refactor the old code. "We must fine-tune the parameters," he said. They integrated new APIs and deployed the model on the server. Even though errors crashed the program at first, it now handles them gracefully. The results are better this week. "Were the tasks automated yet?" she wondered. Next, they will visualize the data to improve accuracy.

Model Training Challenges

English

The team was excited—they had just trained a new classifier. The data had been split into training and test sets, and the features were encoded manually. Despite their efforts, the model was overfit. "Have you evaluated the performance yet?" asked the lead engineer. She confirmed the results were incomplete. "We must normalize the data," she said. They scaled the variables, but the model still underfit. "May we try regularization?" someone suggested. By morning, the model had been reevaluated. The normalization improved accuracy, but the performance was not high enough. "Your dataset might be too small," he warned. "Has the model been loaded successfully?" They visualized the results and found a mistake—some features had not been scaled properly. "Did you check the encoding?" she asked. The team used to encode data automatically, but now they did it manually. Despite the challenges, they were determined to improve the model. "We must train it again," she said. The classifier has been working since yesterday, but the results have not improved yet. "Have you tried adjusting the hyperparameters?" he asked. The team knew they had to be patient—good models take time.

Sample flashcards 20

  • att skriva kod to write code
  • Hon skriver kod varje dag. She writes code every day.
  • Skriver han kod för sina projekt? Does he write code for his projects?
  • De skriver inte kod i Python. They do not write code in Python.
  • att felsöka ett program to debug a program
  • Har du felsökt programmet ännu? Have you debugged the program yet?
  • Programmet har inte blivit felsökt ännu. The program hasn't been debugged yet.
  • att använda ett bibliotek to use a library
  • att använda ett Python-bibliotek to use a Python library
  • Får vi använda detta Python-bibliotek för vårt projekt? May we use this Python library for our project?
  • Ditt team får inte använda det föråldrade biblioteket. Your team may not use that outdated library.
  • att träna en modell to train a model
  • Forskare tränar AI-modeller med stora datamängder. Scientists train AI models with large datasets.
  • Har modellen tränats ännu? Has the model been trained yet?
  • att optimera en algoritm to optimize an algorithm
  • att optimera algoritmen to optimize the algorithm
  • Han sa att de hade optimerat algoritmen. He said they had optimized the algorithm.
  • Trots att den var komplex optimerades algoritmen snabbt. Despite being complex, the algorithm was optimized quickly.
  • att implementera en funktion to implement a feature
  • Vi brukade implementera funktioner manuellt. We used to implement features manually.

A sample of the collection — the full set lives in the app.

Learn this topic in Taalhammer

Spaced repetition, pronunciation and audio — in the app.

Open in the app