Skip to content
/ Michaël Hompus

When predicting with an ML.NET model you trained yourself, you might be interested in just more than the highest scoring label. But how do you get the other labels and their corresponding scores? In this article I will show how to you can get these values.

When predicting with an ML.NET model you trained yourself, you might be interested in just more than the highest scoring label. But how do you get the other labels and their corresponding scores?

In this article I will show how to you can get these values.

read more…
/ Michaël Hompus

YAML is a data serialization standard that is intended to be human friendly. For example, it reduces the use of delimiters quite drastically compared to other formats like JSON. Some YAML file authors might push the boundary for readability even further by having a property where the value can be a sequence with zero or more values, or just a scalar if there is only a single value. Reducing the number of delimiters someone has to read or write even further. How can this work with C#, a strongly typed language?

YAML is a data serialization standard that is intended to be human friendly. For example, it reduces the use of delimiters quite drastically compared to other formats like JSON.

Some YAML file authors might push the boundary for readability even further by having a property where the value can be a sequence with zero or more values, or just a scalar if there is only a single value. Reducing the number of delimiters someone must read or write even further.

How can this work with C#, a strongly typed language?

read more…
Filed under C#
Last update:
/ Michaël Hompus

When you have created a machine learning model, you will retrain that model when new data is available. But when I recently added a couple of images to the training set of my own ML.net model, I was faced with the following exception: System.InvalidOperationException: 'The asynchronous operation has not completed.' The application did work for weeks, so what has changed? And more importantly, how to fix this situation?

When you have created a machine learning model, you will retrain that model when new data is available. But when I recently added a couple of images to the training set of my own ML.NET model, I was faced with the following exception:

System.InvalidOperationException: 'The asynchronous operation has not completed.'

The application did work for weeks, so what has changed? And more importantly, how to fix this situation?

read more…
/ Michaël Hompus

When using a Docker Registry, like hub.docker.com, you will not often want to delete a published version of an image. You cannot know if someone, somewhere in the world is using that specific version. But when using a repository as part of your CI/CD pipeline, you might have lots of versions that are not used by anyone anymore. So, what if you want to clean the repository automatically? In this article, I will show how the delete images by tag, using PowerShell and the Docker Registry HTTP API V2.

When using a Docker Registry, like hub.docker.com, you will not often want to delete a published version of an image. You cannot know if someone, somewhere in the world is using that specific version.

But when using a repository as part of your CI/CD pipeline, you might have lots of versions that are not used by anyone anymore. So, what if you want to clean the repository automatically?

In this article, I will show how the delete images by tag, using PowerShell and the CNCF Distribution HTTP API V2. This API is implemented by registries, like the Azure Container Registry service.

read more…
/ Michaël Hompus

I use the MSTest Parser task in a Bamboo build plan to add a report of tests that were executed and their outcome. But sometimes you want to skip running tests. For example, you are focusing on other changes in your CI/CD pipeline and want to keep the feedback loop as short as possible. The problem is, if you don't run any tests, the parser task will fail. There are no configuration settings to influence this behavior or to disable the task conditionally. I could disable the task manually, but that would affect all other branches at the same time. So, I found it was time to create a quick work around.

I use the MSTest Parser task in a Bamboo build plan to add a report of tests that were executed and their outcome. But sometimes you want to skip running tests. For example, you are focusing on other changes in your CI/CD pipeline and want to keep the feedback loop as short as possible.

The problem is, if you do not run any tests, the parser task will fail. There are no configuration settings to influence this behavior or to disable the task conditionally. I could disable the task manually, but that would affect all other branches at the same time.

Bamboo complaining that no failed tests were found.
Bamboo complaining about not finding any failed tests… which would be a good case in my book

So, it was time to create a quick work around.

read more…
Filed under PowerShell
Last update: