Skip to content

Commit 737ced6

Browse files
committed
Renamed server status requests per minute key
1 parent f4d1371 commit 737ced6

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
- Unreleased
1+
- 0.0.2-beta
22
- Changed name of Binary serializer to Igbinary
3+
- Renamed server status requests per minute key
34

45
- 0.0.1-beta
56
- Added REST and RPC Servers

LICENSE.md

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

3-
Copyright (c) 2019 The Rubix ML Community
4-
Copyright (c) 2019 Andrew DalPino
3+
Copyright (c) 2020 The Rubix ML Community
4+
Copyright (c) 2020 Andrew DalPino
55

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Rubix Server
1+
# Rubix ML Server
22

33
[![PHP from Packagist](https://img.shields.io/packagist/php-v/rubix/server.svg?style=flat-square&colorB=8892BF)](https://www.php.net/) [![Latest Stable Version](https://img.shields.io/packagist/v/rubix/server.svg?style=flat-square&colorB=orange)](https://packagist.org/packages/rubix/server) [![Travis](https://img.shields.io/travis/RubixML/Server.svg?style=flat-square)](https://travis-ci.org/RubixML/Server) [![Downloads from Packagist](https://img.shields.io/packagist/dt/rubix/server.svg?style=flat-square&colorB=red)](https://packagist.org/packages/rubix/server)
44

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"psr/http-message": "^1.0",
2525
"psr/log": "^1.1",
2626
"react/http": "^0.8.5",
27-
"rubix/ml": "^0.0.17-beta"
27+
"rubix/ml": "^0.0.19"
2828
},
2929
"require-dev": {
3030
"friendsofphp/php-cs-fixer": "2.16.*",

examples/RPC/client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
]);
2121

2222
print_r($client->send(new Predict($dataset)));
23-
print_r($client->send(new PredictSample($dataset->row(0))));
23+
print_r($client->send(new PredictSample($dataset->sample(0))));
2424
print_r($client->send(new Proba($dataset)));
25-
print_r($client->send(new ProbaSample($dataset->row(0))));
25+
print_r($client->send(new ProbaSample($dataset->sample(0))));
2626
print_r($client->send(new QueryModel()));
2727
print_r($client->send(new ServerStatus()));

src/Handlers/QueryModelHandler.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Rubix\Server\Handlers;
44

55
use Rubix\ML\Ranking;
6-
use Rubix\ML\DataType;
76
use Rubix\ML\Estimator;
87
use Rubix\ML\Probabilistic;
98
use Rubix\Server\Commands\QueryModel;
@@ -34,9 +33,9 @@ public function __construct(Estimator $estimator)
3433
*/
3534
public function handle(QueryModel $command) : QueryModelResponse
3635
{
37-
$type = Estimator::TYPES[$this->estimator->type()];
36+
$type = Estimator::TYPE_STRINGS[$this->estimator->type()];
3837

39-
$compatibility = array_map([DataType::class, 'asString'], $this->estimator->compatibility());
38+
$compatibility = array_map('strval', $this->estimator->compatibility());
4039

4140
$probabilistic = $this->estimator instanceof Probabilistic;
4241
$ranking = $this->estimator instanceof Ranking;

src/Handlers/ServerStatusHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function handle(ServerStatus $command) : ServerStatusResponse
4040

4141
$requests = [
4242
'count' => $n,
43-
'requestsMin' => round($n / ($uptime / self::MINUTE), 2),
43+
'per_minute' => round($n / ($uptime / self::MINUTE), 2),
4444
];
4545

4646
$memoryUsage = [

tests/Handlers/QueryModelHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function handle() : void
4949
'compatibility' => [
5050
'continuous',
5151
'categorical',
52-
'resource',
52+
'image',
5353
'other',
5454
],
5555
'probabilistic' => false,

0 commit comments

Comments
 (0)