You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Artem Malykh (JIRA)" <ji...@apache.org> on 2018/12/05 10:05:00 UTC

[jira] [Created] (IGNITE-10539) [ML] Make 'with' methods consistent

Artem Malykh created IGNITE-10539:
-------------------------------------

             Summary: [ML] Make 'with' methods consistent
                 Key: IGNITE-10539
                 URL: https://issues.apache.org/jira/browse/IGNITE-10539
             Project: Ignite
          Issue Type: Improvement
            Reporter: Artem Malykh


In some places we have 'with*' methods making inplace changes and returning object itself (for example MLPTrainer::withLoss) while in other places we have them creating new instances with corresponding parameter changed (for example DatasetBuilder::withFilter, DatasetBuilder::withUpstreamTrainsformer). This inconsistency makes user look into javadoc each time and worsens overall API consistensy level. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Re: [jira] [Created] (IGNITE-10539) [ML] Make 'with' methods consistent

Posted by Alexey Zinoviev <za...@gmail.com>.
In my opinion, the main senario is the 'in-place' changes via with method.
This is a Java and mutability is normal behaviour.

ср, 5 дек. 2018 г. в 13:05, Artem Malykh (JIRA) <ji...@apache.org>:

> Artem Malykh created IGNITE-10539:
> -------------------------------------
>
>              Summary: [ML] Make 'with' methods consistent
>                  Key: IGNITE-10539
>                  URL: https://issues.apache.org/jira/browse/IGNITE-10539
>              Project: Ignite
>           Issue Type: Improvement
>             Reporter: Artem Malykh
>
>
> In some places we have 'with*' methods making inplace changes and
> returning object itself (for example MLPTrainer::withLoss) while in
> other places we have them creating new instances with corresponding
> parameter changed (for example DatasetBuilder::withFilter,
> DatasetBuilder::withUpstreamTrainsformer). This inconsistency makes user
> look into javadoc each time and worsens overall API consistensy level.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v7.6.3#76005)
>