Skip to content

Commit

Permalink
[DOC] Initial guidelines on porting Numpy to DaphneLib.
Browse files Browse the repository at this point in the history
- Added a page in the user documentation on manually porting Numpy-based Python scripts to DaphneLib-based Python scripts.
- By no means complete, just an initial write-up.
- Added links to the new page in the documentation.
- Added a new method on matrices in DaphneLib: asType() for casting to another data/value type.
  • Loading branch information
pdamme committed Jun 30, 2024
1 parent c3266c0 commit 81667eb
Show file tree
Hide file tree
Showing 5 changed files with 443 additions and 1 deletion.
5 changes: 5 additions & 0 deletions doc/DaphneLib/APIRef.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ In the following, we describe only the latter.
- **`order`**`(colIdxs: List[int], ascs: List[bool], returnIndexes: bool)`

**Data preprocessing:**

- **`oneHot`**`(info:matrix)`
- **`bin`**`(numBins:int, Min = None, Max = None)`

Expand All @@ -162,6 +163,10 @@ In the following, we describe only the latter.
- **`print`**`()`
- **`write`**`(file: str)`

**Conversions and casts:**

- **`asType`**`(dtype=None, vtype=None) -> Matrix`

### `Frame` API Reference

**Frame dimensions:**
Expand Down
Loading

0 comments on commit 81667eb

Please sign in to comment.