Tech blog of j-labs' engineers. Experiences, knowledge, solutions.

Reinforcement Learning with Q-Learning

Reinforcement learning is a type of machine learning that does not require a dataset to learn from. It can learn from the experience it gathers. Let’s think of the network as of an agent in a defined environment. The agent learns about the environment through the actions it performs and a feedback it receives. For each action, it will receive a reward, if the action was good or a penalty otherwise. Based on the knowledge the agent has gathered and the current state of the environment, the next action is chosen.

Konrad Habryn

|

04 Sep 2019

  Python 

Read more
3

Reinforcement Learning with Q-Learning

04 Sep 2019 | Konrad Habryn

  Python 

Reinforcement learning is a type of machine learning that does not require a dataset to learn from. It can learn from the experience it gathers. Let’s think of the network as of an agent in a defined environment. The agent learns about the environment through the actions it performs and a feedback it receives. For each action, it will receive a reward, if the action was good or a penalty otherwise. Based on the knowledge the agent has gathered and the current state of the environment, the next action is chosen.

Read more
4

Test Automation with Python

31 Jul 2019 | Marcin Halastra

Python code just like in any other language requires testing. Unittest is a python framework dedicated for it. It has origins in Junit in terms of code structure and behavior. In this article I will try to illuminate a little bit the topic of testing in Python and provide some good practices.

Read more
5

Python meets microservice - useful tips based on experience

05 Jun 2019 | Karol Wybraniec

It is impossible nowadays to not hear about microservices. It’s so “buzzy” word that everyone is talking, writing and thinking about it – either developers and managers. In this blogpost I’d like to focus on some useful cases concerning Python & Microservices altogether.

Read more
6

Python Good Practices Part 3 - Writing faster code

15 May 2019 | Szymon Piwowar

  Python 

There are many ways to write code in order to achieve same results. This article will show you how different approaches affect the code execution in the scope of time duration. This should give you a hint on what choices should be made but mostly to encourage you to always consider time execution as a substantial matter.

Read more
7

Python Good Practices Part 2 - Writing Pythonic code

17 Apr 2019 | Szymon Piwowar

  Python 

While reading top-shelf Python books, you probably might have bumped into the sentence "be pythonic". But what exactly does it mean and how to use it in real life examples? This article presents some practical cases where pythonic approach should be used and shows you some code snippets, where this approach was implemented.

Read more
8

Python Good Practices: Part 1 - Python constructs

27 mar 2019 | Szymon Piwowar

  Python 

Python has many powerful and useful constructs. Depending on their design, they help us to write code safer, more readable, often faster and with lower memory usage. This article covers Iterables and Iterators, Generators, Context Managers, Comprehensions and Decorators and explains their usage and usability.

Read more
9

Mocking objects with Python

06 mar 2019 | Marcin Halastra

Mocking is just pretending to be and simulating specific behavior, we can replace our code’s parts with fake objects and verify how system behaves. At some point our system’s code starts to be complicated and have so many dependencies what makes it impossible to test without mocks. To cover all corner cases or to freely control our test scenario flow we have to simulate part of functionality – we have to force it to behave in exact way we want. For this purpose python uses unitest.mock library which is a standard library starting from Python 3.3 (for older versions installation is required).

Read more
10

Pytest - why it's more popular than unittest?

06 Feb 2019 | Karol Wybraniec

In my professional career I used to write tests with both frameworks: unittest and pytest. Both are great tools with certain pros and cons, but pytest is significantly more popular these days. In this short blogpost I am going to share with you a couple of pytest’s features, that in my opinion, provide the answer for the heading question.

Read more
11

First steps with Ansible

12 Sep 2018 | Łukasz Zosiak

  Cloud Python 

Ansible is an open source powerful automation tool used for configuration management, application deployment, orchestration and task automation. Let's create some Ansible config to see how it works.

Read more
12

Python - setting up the environment

12 Apr 2017 | Łukasz Zosiak

  Python 

Python is a multi-paradigm, general purpose interpreted high level language with dynamic typing, automatic memory management.

Read more