<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Data mining (Posts about library)</title><link>https://www.data-mining.co.nz/</link><description></description><atom:link href="https://www.data-mining.co.nz/categories/cat_library.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2026 &lt;a href="mailto:fracpete@waikato.ac.nz"&gt;Applied Machine Learning Group, University of Waikato&lt;/a&gt; </copyright><lastBuildDate>Thu, 09 Jul 2026 04:07:54 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>video-frame-selector library released</title><link>https://www.data-mining.co.nz/news/2021-11-02-video-frame-selector/</link><dc:creator>Applied Machine Learning Group, University of Waikato</dc:creator><description>&lt;p&gt;Release 0.0.8 of the &lt;strong&gt;video-frame-selector&lt;/strong&gt; Python 3 library is now available:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://github.com/waikato-datamining/video-frame-selector"&gt;github.com/waikato-datamining/video-frame-selector&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It includes some bug-fixes relating to the the Redis support and it now can
iterate over images in a directory as well (not just processing video or webcam feed).&lt;/p&gt;</description><category>release</category><guid>https://www.data-mining.co.nz/news/2021-11-02-video-frame-selector/</guid><pubDate>Tue, 02 Nov 2021 00:55:00 GMT</pubDate></item><item><title>tflite model maker tools</title><link>https://www.data-mining.co.nz/news/2021-10-06-tflite-model-maker/</link><dc:creator>Applied Machine Learning Group, University of Waikato</dc:creator><description>&lt;p&gt;Tensorflow made the &lt;a class="reference external" href="https://www.tensorflow.org/lite/guide/model_maker"&gt;tflite model maker&lt;/a&gt; available a while go,
which (according to the project website) &lt;em&gt;simplifies the process of training a TensorFlow Lite model using custom
dataset. It uses transfer learning to reduce the amount of training data required and shorten the training time.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;But instead of falling back on scripting Python again, we pulled code from the their example notebooks into
a library that offers command-line utilies and published it on &lt;a class="reference external" href="https://pypi.org/"&gt;PyPI&lt;/a&gt; to avoid having to
write Python code over and over again for every new problem/dataset. It also makes it easy to create docker
images from it, making it highly reusable.&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://github.com/waikato-datamining/tensorflow/tree/master/tflite_model_maker"&gt;tflite_model_maker project page&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://github.com/waikato-datamining/tensorflow/tree/master/tflite_model_maker/docker/2.4.3"&gt;GPU docker image&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://github.com/waikato-datamining/tensorflow/tree/master/tflite_model_maker/docker/2.4.3_cpu"&gt;CPU docker image&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;</description><category>release</category><guid>https://www.data-mining.co.nz/news/2021-10-06-tflite-model-maker/</guid><pubDate>Wed, 06 Oct 2021 03:02:00 GMT</pubDate></item><item><title>video-frame-selector library released</title><link>https://www.data-mining.co.nz/news/2021-08-03-video-frame-selector/</link><dc:creator>Applied Machine Learning Group, University of Waikato</dc:creator><description>&lt;p&gt;The &lt;strong&gt;video-frame-selector&lt;/strong&gt; Python 3 library is now available:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://github.com/waikato-datamining/video-frame-selector"&gt;github.com/waikato-datamining/video-frame-selector&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With this library you can present frames obtained from video files or a webcam to an image analysis framework,
such as &lt;a class="reference external" href="https://github.com/waikato-datamining/pytorch/tree/master/detectron2"&gt;detectron2&lt;/a&gt;, and react to the
generated predictions. For instance, you might want to trawl through a video from a trail camera and generate
either JPG images or a shortened video that contains &lt;strong&gt;only&lt;/strong&gt; the frames that show actual animal. Or you might
only look for a specific animal, rather than all of them (e.g., only NZ pests such as rats or stoats).
Frames that are to be kept can also be cropped to the smallest area that encompasses all the detected bounding
boxes (you can enforce a margin around the cropped content and/or a minimum width/height).&lt;/p&gt;</description><category>release</category><guid>https://www.data-mining.co.nz/news/2021-08-03-video-frame-selector/</guid><pubDate>Mon, 02 Aug 2021 23:20:00 GMT</pubDate></item><item><title>simple-confusion-matrix library released</title><link>https://www.data-mining.co.nz/news/2021-04-16-simple-confusion-matrix/</link><dc:creator>Applied Machine Learning Group, University of Waikato</dc:creator><description>&lt;p&gt;The &lt;strong&gt;simple-confusion-matrix&lt;/strong&gt; Python 3 library has been released today:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://github.com/waikato-datamining/simple-confusion-matrix"&gt;github.com/waikato-datamining/simple-confusion-matrix&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is a simple library that can generate confusion matrices from CSV
files or lists of actual and predicted labels. It can output the generated
matrix either in plain text or CSV, as string or to a file.&lt;/p&gt;
&lt;p&gt;Rather than just using counts, it can generate also:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;percentages (all cells sum up to 1)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;percentages per row (all cells in a row sum up to 1)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The latter is useful when dealing with imbalanced datasets, giving you a good idea of
how well each label is being predicted.&lt;/p&gt;</description><category>release</category><guid>https://www.data-mining.co.nz/news/2021-04-16-simple-confusion-matrix/</guid><pubDate>Fri, 16 Apr 2021 02:29:00 GMT</pubDate></item><item><title>PyTorch image classification available</title><link>https://www.data-mining.co.nz/news/2021-01-11-pytorch-image-classification/</link><dc:creator>Applied Machine Learning Group, University of Waikato</dc:creator><description>&lt;p&gt;Today, a new library for performing image classification has made its debut:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;wai.pytorchimageclass&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The library is based on the PyTorch example code for &lt;a class="reference external" href="https://github.com/pytorch/examples/tree/master/imagenet"&gt;imagenet&lt;/a&gt;.
For ResNet-based networks, you can finetune pretrained models on your own data rather than
just using the imagenet dataset. In addition, you can make predictions (single and batch/continuous), output information
on built models and export trained models to &lt;a class="reference external" href="https://pytorch.org/docs/stable/jit.html"&gt;TorchScript&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The library is also available via Docker images, one for &lt;a class="reference external" href="https://github.com/waikato-datamining/pytorch/tree/master/image-classification/docker/1.6.0"&gt;GPU-based&lt;/a&gt; machines and one for &lt;a class="reference external" href="https://github.com/waikato-datamining/pytorch/tree/master/image-classification/docker/1.6.0_cpu"&gt;CPU-only ones&lt;/a&gt;. However, the latter one should only be used for inference and not training, as it is simply too slow.&lt;/p&gt;
&lt;p&gt;More information on the library and the Docker images is available from Github:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://github.com/waikato-datamining/pytorch/tree/master/image-classification"&gt;github.com/waikato-datamining/pytorch/tree/master/image-classification&lt;/a&gt;&lt;/p&gt;</description><category>release</category><guid>https://www.data-mining.co.nz/news/2021-01-11-pytorch-image-classification/</guid><pubDate>Mon, 11 Jan 2021 03:53:00 GMT</pubDate></item><item><title>video-frame-processor library released</title><link>https://www.data-mining.co.nz/news/2021-01-05-video-frame-processor/</link><dc:creator>Applied Machine Learning Group, University of Waikato</dc:creator><description>&lt;p&gt;The &lt;strong&gt;video-frame-processor&lt;/strong&gt; Python 3 library has been released today:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://github.com/waikato-datamining/video-frame-processor"&gt;github.com/waikato-datamining/video-frame-processor&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;While it is easy with opencv to open files and webcams, there is no
point in writing the same code over and over again. This is where
the &lt;em&gt;video-frame-processor&lt;/em&gt; library comes in, allowing you to
concentrate on the &lt;em&gt;processing&lt;/em&gt; of the frames from the video source.&lt;/p&gt;</description><category>release</category><guid>https://www.data-mining.co.nz/news/2021-01-05-video-frame-processor/</guid><pubDate>Tue, 05 Jan 2021 01:01:00 GMT</pubDate></item><item><title>simple-file-poller library released</title><link>https://www.data-mining.co.nz/news/2020-12-13-simple-file-poller/</link><dc:creator>Applied Machine Learning Group, University of Waikato</dc:creator><description>&lt;p&gt;The &lt;strong&gt;simple-file-poller&lt;/strong&gt; Python 3 library has been released this week:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://github.com/waikato-datamining/simple-file-poller"&gt;github.com/waikato-datamining/simple-file-poller&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This library is aimed at Python projects that perform continuous processing
of files, e.g., deep learning models that locate objects in images. These
projects typically pick up files from one directory, make predictions,
write the output in some format to another directory and then either
move the input files to the output directory or simply delete them.&lt;/p&gt;
&lt;p&gt;Instead of having to write this code for polling and moving over and over
again, the &lt;strong&gt;simple-file-poller&lt;/strong&gt; library allows you to plug in your
file processing code via a function that you supply to a &lt;strong&gt;Poller&lt;/strong&gt;
object. Furthermore, you can also supply a function that can check whether
files are valid and can be processed (e.g., image files).&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;Poller&lt;/strong&gt; class supports two polling modes: time-based and watchdog-based.
The former waits for a specified number of seconds between polls (if there
were no files present). This simple approach can be used when the file
processing is not time critical. The latter approach watches the input directory
for files being created and then reacts to that immediately. This approach
allows for very low latency processing, especially useful for processing
pipelines.&lt;/p&gt;
&lt;p&gt;Another feature is the ability to write any output to a temporary directory
first, before moving it into the output directory. This avoids race conditions
with other processes that further process the generated output files, as the
files are guaranteed to have been fully written.&lt;/p&gt;
&lt;p&gt;The following frameworks make use of the &lt;strong&gt;simple-file-poller&lt;/strong&gt; now (and more will follow):&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://github.com/waikato-datamining/tensorflow/tree/master/image-segmentation-keras"&gt;image-segmentation-keras&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://github.com/waikato-datamining/mmdetection"&gt;mmdetection&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;</description><category>release</category><guid>https://www.data-mining.co.nz/news/2020-12-13-simple-file-poller/</guid><pubDate>Sat, 12 Dec 2020 20:43:00 GMT</pubDate></item></channel></rss>