Posts

Showing posts from 2018

Machine learning: Prediction suicidal behaviour based on drug abuse and mental health

Image
There is some well-known correlation between certain mental disorders and suicidal ideation or suicidal behaviour. I was interested in whether a machine learning model could be trained to identify suicidal behaviour based on mental health, biological health, and drug abuse questions. The dataset I was working with came from the public Criminal Justice Drug Abuse Treatment Studies (CJ-DATS): The Criminal Justice Co-Occurring Disorder Screening Instrument (CJ-CODSI) and had new 353 new admissions to a prison-based substance abuse treatment program (137 Whites, 96 African Americans, and 120 Latinos). The questionnaire overall was very detailed with 789 attributes, either direct data input or compound fields, based on other fields. The variable I wanted to forecast was called SATTLF (Suicide Attempts Lifetime) and to make sure that no suicide or suicide-related questions were left in the source data, I removed 164 fields (including SATTLF), which directly or indirectly referred to

Zero knowledge AI for Tic-tac-toe and Gomoku (Five in a row) games

Image
Starting from zero When building AI for games, zero knowledge simply means that when the system starts learning the game it only understands what it means to move, win, or lose. In certain situations, it is certainly easier and faster to simply instruct the machine how to play instead of building a system that can infer knowledge from a gameplay: for simple or very fixed problems, like Tic-tac-toe, an algorithmic approach can be an excellent solution. However, as the game complexity increases it is not always easy to program the system how to play - sometimes advanced players can employ different strategies and beat the computer all the time. In these situations, a self-learning system might be a better approach. Artificial neural networks Neural networks are great to recognise complex patterns and build predictions based on these patterns, although it's worth keeping in mind that they aren't the best solution to every problem: as the "knowledge" is stored in

Generating APA 6 formatting and references with LaTeX and BibLaTeX

Image
What is LaTeX It's a toolset that is able to transform the documents written in TeX language into something beautifully rendered, like a PDF file, requiring almost no effort for formatting. It was invented to counteract the problem of different machines displaying files differently, especially things that are hard to format, like equations, tables, and so on. The steps typically look like this: +----------------+ +------------------+ | Reference Mgr. +------> Biblatex .bib +--------+ +----------------+ +------------------+ +v-------------+ +-----------+ | latexmk +----> .pdf | +----------------+ +------------------+ +^-------------+ +-----------+ | Text editor +------> LaTeX .tex +--------+ +----------------+ +------------------+ Automate referencing and formatting with LaTeX for psychology papers Psychology papers are mostly text heavy with some