Skip to content

Commit

Permalink
2.0 beta (#14)
Browse files Browse the repository at this point in the history
* Move Swish to main repo

* Bring up to speed with ML 2.0

* Appease PHPUnit

* Clean up a bit
  • Loading branch information
andrewdalpino authored Sep 6, 2022
1 parent ed21847 commit 3eb3b3f
Show file tree
Hide file tree
Showing 45 changed files with 113 additions and 1,421 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
- 2.0.0-beta
- Works with ML 2.0
- Move SiLU activation function over to main repo
- Move Deduplicator Extractor to main repo
- Remove Flysystem Persister

- 1.2.0-beta
- Added Deduplicator extractor
- Implement K-mer tokenizer
Expand Down
3 changes: 2 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MIT License

Copyright (c) 2021 Andrew DalPino
Copyright (c) 2022 The Rubix ML Community
Copyright (c) 2022 Andrew DalPino

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function setUp() : void
*/
public function compute() : void
{
$this->activationFn->compute($this->z);
$this->activationFn->activate($this->z);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/NeuralNet/ActivationFunctions/ISRLUBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function setUp() : void
*/
public function compute() : void
{
$this->activationFn->compute($this->z);
$this->activationFn->activate($this->z);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/NeuralNet/ActivationFunctions/ISRUBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function setUp() : void
*/
public function compute() : void
{
$this->activationFn->compute($this->z);
$this->activationFn->activate($this->z);
}

/**
Expand Down
57 changes: 0 additions & 57 deletions benchmarks/NeuralNet/ActivationFunctions/SiLUBench.php

This file was deleted.

2 changes: 1 addition & 1 deletion benchmarks/Serializers/RBXEBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class RBXEBench
protected const TRAINING_SIZE = 2500;

/**
* @var \Rubix\ML\Persisters\Serializers\RBXE
* @var \Rubix\ML\Serializers\RBXE
*/
protected $serializer;

Expand Down
4 changes: 2 additions & 2 deletions benchmarks/Transformers/BM25TransformerBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ class BM25TransformerBench
protected $transformer;

/**
* @var array[]
* @var array<array<mixed>>
*/
protected $aSamples;

/**
* @var array[]
* @var array<array<mixed>>
*/
protected $bSamples;

Expand Down
21 changes: 10 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"authors": [
{
"name": "Andrew DalPino",
"role": "Project Lead",
"homepage": "https://github.com/andrewdalpino",
"email": "support@andrewdalpino.com"
},
Expand All @@ -23,18 +22,15 @@
],
"require": {
"php": ">=7.4",
"league/flysystem": "1.x.x|2.x.x",
"rubix/ml": "^1.0",
"scienide/okbloomer": "^1.0@beta"
"rubix/ml": "^2.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.1",
"league/flysystem-memory": "1.x.x|2.x.x",
"friendsofphp/php-cs-fixer": "^3.0",
"phpbench/phpbench": "^1.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "0.12.*",
"phpstan/phpstan-phpunit": "0.12.*",
"phpunit/phpunit": "8.5.*"
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/phpunit": "^9.0"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -66,12 +62,15 @@
"config": {
"preferred-install": "dist",
"sort-packages": true,
"process-timeout": 3000
"process-timeout": 3000,
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/andrewdalpino"
"url": "https://github.com/sponsors/RubixML"
}
],
"support": {
Expand Down
31 changes: 0 additions & 31 deletions docs/extractors/deduplicator.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/neural-network/activation-functions/silu.md

This file was deleted.

3 changes: 1 addition & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ parameters:
paths:
- 'src'
- 'tests'
excludePaths:
- *FlysystemV1*
- 'benchmarks'
3 changes: 0 additions & 3 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
<testsuite name="NeuralNet">
<directory>tests/NeuralNet</directory>
</testsuite>
<testsuite name="Persisters">
<directory>tests/Persisters</directory>
</testsuite>
<testsuite name="Serializers">
<directory>tests/Serializers</directory>
</testsuite>
Expand Down
88 changes: 0 additions & 88 deletions src/Extractors/Deduplicator.php

This file was deleted.

Loading

0 comments on commit 3eb3b3f

Please sign in to comment.