Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Commit 3eb3b3f

Browse files
2.0 beta (#14)
* Move Swish to main repo * Bring up to speed with ML 2.0 * Appease PHPUnit * Clean up a bit
1 parent ed21847 commit 3eb3b3f

45 files changed

Lines changed: 113 additions & 1421 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
- 2.0.0-beta
2+
- Works with ML 2.0
3+
- Move SiLU activation function over to main repo
4+
- Move Deduplicator Extractor to main repo
5+
- Remove Flysystem Persister
6+
17
- 1.2.0-beta
28
- Added Deduplicator extractor
39
- Implement K-mer tokenizer

LICENSE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
MIT License
22

3-
Copyright (c) 2021 Andrew DalPino
3+
Copyright (c) 2022 The Rubix ML Community
4+
Copyright (c) 2022 Andrew DalPino
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

benchmarks/NeuralNet/GELUBench.php renamed to benchmarks/NeuralNet/ActivationFunctions/GELUBench.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function setUp() : void
4242
*/
4343
public function compute() : void
4444
{
45-
$this->activationFn->compute($this->z);
45+
$this->activationFn->activate($this->z);
4646
}
4747

4848
/**

benchmarks/NeuralNet/ActivationFunctions/ISRLUBench.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function setUp() : void
4242
*/
4343
public function compute() : void
4444
{
45-
$this->activationFn->compute($this->z);
45+
$this->activationFn->activate($this->z);
4646
}
4747

4848
/**

benchmarks/NeuralNet/ActivationFunctions/ISRUBench.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function setUp() : void
4242
*/
4343
public function compute() : void
4444
{
45-
$this->activationFn->compute($this->z);
45+
$this->activationFn->activate($this->z);
4646
}
4747

4848
/**

benchmarks/NeuralNet/ActivationFunctions/SiLUBench.php

Lines changed: 0 additions & 57 deletions
This file was deleted.

benchmarks/Serializers/RBXEBench.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class RBXEBench
1616
protected const TRAINING_SIZE = 2500;
1717

1818
/**
19-
* @var \Rubix\ML\Persisters\Serializers\RBXE
19+
* @var \Rubix\ML\Serializers\RBXE
2020
*/
2121
protected $serializer;
2222

benchmarks/Transformers/BM25TransformerBench.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ class BM25TransformerBench
2525
protected $transformer;
2626

2727
/**
28-
* @var array[]
28+
* @var array<array<mixed>>
2929
*/
3030
protected $aSamples;
3131

3232
/**
33-
* @var array[]
33+
* @var array<array<mixed>>
3434
*/
3535
protected $bSamples;
3636

composer.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"authors": [
1313
{
1414
"name": "Andrew DalPino",
15-
"role": "Project Lead",
1615
"homepage": "https://github.com/andrewdalpino",
1716
"email": "support@andrewdalpino.com"
1817
},
@@ -23,18 +22,15 @@
2322
],
2423
"require": {
2524
"php": ">=7.4",
26-
"league/flysystem": "1.x.x|2.x.x",
27-
"rubix/ml": "^1.0",
28-
"scienide/okbloomer": "^1.0@beta"
25+
"rubix/ml": "^2.0"
2926
},
3027
"require-dev": {
31-
"friendsofphp/php-cs-fixer": "^3.1",
32-
"league/flysystem-memory": "1.x.x|2.x.x",
28+
"friendsofphp/php-cs-fixer": "^3.0",
3329
"phpbench/phpbench": "^1.0",
3430
"phpstan/extension-installer": "^1.0",
35-
"phpstan/phpstan": "0.12.*",
36-
"phpstan/phpstan-phpunit": "0.12.*",
37-
"phpunit/phpunit": "8.5.*"
31+
"phpstan/phpstan": "^1.0",
32+
"phpstan/phpstan-phpunit": "^1.0",
33+
"phpunit/phpunit": "^9.0"
3834
},
3935
"autoload": {
4036
"psr-4": {
@@ -66,12 +62,15 @@
6662
"config": {
6763
"preferred-install": "dist",
6864
"sort-packages": true,
69-
"process-timeout": 3000
65+
"process-timeout": 3000,
66+
"allow-plugins": {
67+
"phpstan/extension-installer": true
68+
}
7069
},
7170
"funding": [
7271
{
7372
"type": "github",
74-
"url": "https://github.com/sponsors/andrewdalpino"
73+
"url": "https://github.com/sponsors/RubixML"
7574
}
7675
],
7776
"support": {

docs/extractors/deduplicator.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)