Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lmbelo committed Jun 9, 2022
2 parents 91f73b3 + 99bd9dc commit eb8ffc4
Show file tree
Hide file tree
Showing 942 changed files with 62 additions and 24 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
# Delphi history and backups
__history/
__recovery/
Debug/
*.~*

# Castalia statistics file (since XE7 Castalia is distributed with Delphi)
Expand Down
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,24 @@
# P4D-Data-Sciences
A collection of lightweight Python wrappers based on Python4Delphi simplifying Data Sciences development with Delphi

This is an _early access preview_, but you are encouraged to try it out, file bug reports, and add features. [Read more](https://blogs.embarcadero.com/?p=145025) and catch the live stream.

Currently includes:
* **Tensorflow** - Library for machine learning and artificial intelligence.
* **NumPy** - [[Demos](https://github.com/Embarcadero/P4D-Data-Sciences/tree/main/demos/NumPy)] Numerical library for working with large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these them.
* **PyTorch & PyTorch Vision** - [[Demos](https://github.com/Embarcadero/P4D-Data-Sciences/tree/main/demos/PyTorch)] For computer vision and natural language processing applications.
* **MatPlotLib** - [[Demos](https://github.com/Embarcadero/P4D-Data-Sciences/tree/main/demos/MatplotLib)] Library for creating static, animated, and interactive visualizations.
* **Natural Language Toolkit (NLTK)** - [Demos](https://github.com/Embarcadero/P4D-Data-Sciences/tree/main/demos/NLTK) Suite of libraries and programs for symbolic and statistical natural language processing (NLP) for English.
* **OpenCV** - Library of programming functions mainly aimed at real-time computer vision
* **Scikit-learn** - [[Demos](https://github.com/Embarcadero/P4D-Data-Sciences/tree/main/demos/ScikitLearn)] Machine learning library that features various classification, regression and clustering algorithms including support-vector machines, random forests, gradient boosting, k-means and DBSCAN.

Most packages have basic samples, but PyTorch has a very involed [Transfer Learning demonstration](https://github.com/Embarcadero/P4D-Data-Sciences/tree/main/demos/PyTorch/PyTorchTransferLearning).

## Dependencies:

Please make sure the following are installed **_before_** installing this library

* [Python4Delphi](https://github.com/Embarcadero/python4delphi)
* [Lightweight-Python-Wrappers](https://github.com/Embarcadero/Lightweight-Python-Wrappers)
* [PythonEnviroments](https://github.com/Embarcadero/PythonEnviroments)

18 changes: 1 addition & 17 deletions demos/NLTK/NLTKBasics/nltk1_main.fmx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ object Form16: TForm16
AutoLoad = False
PythonVersion = '3.10'
PythonEngine = PythonEngine1
Async = False
OnZipProgress = PyEmbeddedResEnvironment3101ZipProgress
Left = 192
Top = 296
Expand All @@ -147,23 +148,6 @@ object Form16: TForm16
Left = 368
Top = 128
end
object PythonGUIInputOutput1: TPythonGUIInputOutput
UnicodeIO = True
RawOutput = False
Left = 368
Top = 208
end
object PythonType1: TPythonType
Engine = PythonEngine1
Prefix = 'Create'
Services.Basic = [bsRepr, bsStr, bsGetAttrO, bsSetAttrO]
Services.InplaceNumber = []
Services.Number = []
Services.Sequence = []
Services.Mapping = []
Left = 368
Top = 296
end
object NumPy1: TNumPy
AutoImport = False
PythonEngine = PythonEngine1
Expand Down
11 changes: 4 additions & 7 deletions demos/NLTK/NLTKBasics/nltk1_main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
System.Zip, System.Threading, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics,
FMX.Dialogs, FMX.Memo.Types, NumPy, PythonEngine, FMX.PythonGUIInputOutput,
PyEnvironment.AddOn, PyEnvironment.AddOn.EnsurePip, PyEnvironment,
FMX.Dialogs, FMX.Memo.Types, NumPy, PythonEngine, PyEnvironment,
PyEnvironment.Embeddable, PyEnvironment.Embeddable.Res,
PyEnvironment.Embeddable.Res.Python310, PyCommon, PyModule, PyPackage, NLTK,
FMX.Layouts, FMX.ListBox, FMX.ScrollBox, FMX.Memo, FMX.StdCtrls,
PyEnvironment.Embeddable.Res.Python310, PyCommon, PyModule, PyPackage,
NLTK, FMX.Layouts, FMX.ListBox, FMX.ScrollBox, FMX.Memo, FMX.StdCtrls,
FMX.Controls.Presentation;

type
Expand All @@ -18,17 +17,15 @@ TForm16 = class(TForm)
PyEmbeddedResEnvironment3101: TPyEmbeddedResEnvironment310;
PythonEngine1: TPythonEngine;
Button1: TButton;
PythonGUIInputOutput1: TPythonGUIInputOutput;
StatusBar1: TStatusBar;
lbMsg: TLabel;
lbDesc: TLabel;
Memo1: TMemo;
ListBox1: TListBox;
PythonType1: TPythonType;
ListBox2: TListBox;
ListBox3: TListBox;
NumPy1: TNumPy;
AniIndicator1: TAniIndicator;
NumPy1: TNumPy;
procedure Button1Click(Sender: TObject);
procedure PyEmbeddedResEnvironment3101AfterActivate(Sender: TObject;
const APythonVersion: string; const AActivated: Boolean);
Expand Down
Binary file added demos/NLTK/NLTKBasics/nltk_basics.res
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit eb8ffc4

Please sign in to comment.