From: Roger Mc <rogermcm2@gmail.com>
Subject: Re: Artificial Intelligence libraries in ADA
Date: Sun, 8 Jan 2023 17:56:49 -0800 (PST) [thread overview]
Message-ID: <a48306e3-c84f-488f-97a0-177e49a2d9e1n@googlegroups.com> (raw)
In-Reply-To: <53481976-aebc-4d6d-bb8f-aa4f63f0b01b@googlegroups.com>
On Wednesday, July 10, 2019 at 5:25:50 PM UTC+10, Daniel wrote:
> Does anybody knows pure Ada libraries for AI?
>
> Specially, I'm interested in Decission Trees, but I can't find anything on internet.
>
> I case of a negative answer, does anybody knows a good CPU perforamnce AI C/C++ Library working good binded to Ada code?
I had a similar need involving TensorFlow.
After much investigation I decided on the method suggested by
http://www.inspirel.com/articles/Ada_Python_Demo.html
This demo is rather simplistic and required some slight extension to be useful, mainly involving the passing of parameters to Python methods.
I now have developed a fairly extensive, though probably far from complete, binding based on the inspirel method.
An example of its use:
Python.Initialize;
MLP := Python.Import_File ("lesson_4cp");
Python.Call (MLP, "classify", Train_X, Train_Y_1D, Test_X, Test_Y_1D);
Python.Close_Module (MLP);
Python.Finalize;
where the Python.Call is to:
procedure Call (M : Module; Function_Name : String;
A : ML_Arrays_And_Matrices.Real_Float_Matrix;
B : ML_Arrays_And_Matrices.Integer_Array;
C : ML_Arrays_And_Matrices.Real_Float_Matrix;
D : ML_Arrays_And_Matrices.Integer_Array);
I decided on the inspirel method as it seems fairly straightforward and requires no 3rd party packages.
It only involves the Python C Api interface, for example:
function PyImport_Import (Obj : PyObject) return PyObject;
pragma Import (C, PyImport_Import, "PyImport_Import");
During my research I didn't come across many of the very interesting solutions mentioned in this conversation.
next prev parent reply other threads:[~2023-01-09 1:56 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-10 7:25 Artificial Intelligence libraries in ADA Daniel
2019-07-10 7:39 ` J-P. Rosen
2019-07-10 8:57 ` Daniel
2019-07-10 10:52 ` Dmitry A. Kazakov
2019-07-10 11:30 ` Daniel
2019-07-10 14:44 ` Philip Munts
2019-07-10 15:08 ` Dmitry A. Kazakov
2019-07-10 16:13 ` Jeffrey R. Carter
2019-07-11 7:42 ` Björn Lundin
2019-07-11 16:49 ` Jeffrey R. Carter
2022-11-10 17:58 ` Marius Amado-Alves
2022-11-10 19:10 ` Jeffrey R.Carter
2022-11-10 19:18 ` Luke A. Guest
2022-11-11 10:20 ` Rod Kay
2023-01-08 16:32 ` Dana B
2023-01-09 11:12 ` Rod Kay
2023-01-11 6:35 ` Rod Kay
2023-01-12 2:46 ` Roger Mc
2023-01-12 5:01 ` Rod Kay
2023-01-12 5:13 ` Roger Mc
2023-01-12 5:30 ` Roger Mc
2023-01-12 5:38 ` Roger Mc
2023-01-12 5:43 ` Roger Mc
2023-01-12 7:31 ` Rod Kay
2023-01-12 8:02 ` Rod Kay
2023-01-12 9:12 ` Roger Mc
2023-01-12 10:32 ` Rod Kay
2023-01-12 10:51 ` Roger Mc
2023-01-12 11:28 ` Roger Mc
2023-01-12 12:18 ` Rod Kay
2023-01-12 21:57 ` Roger Mc
2023-01-12 22:09 ` Roger Mc
2023-01-13 0:12 ` Roger Mc
2023-01-13 0:40 ` Roger Mc
2023-01-13 7:24 ` Rod Kay
2023-01-13 22:13 ` Roger Mc
2023-01-13 11:18 ` Marius Amado-Alves
2023-01-13 14:55 ` Roger Mc
2023-01-13 7:19 ` Rod Kay
2023-01-13 22:08 ` Roger Mc
2023-01-14 9:35 ` Rod Kay
2023-01-14 11:53 ` Roger Mc
2023-01-09 1:56 ` Roger Mc [this message]
2023-01-09 10:49 ` J-P. Rosen
2023-01-09 11:21 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox