<div dir="ltr">Hello Pierre<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">"does not allow to do symbols and (list of) floats" </blockquote><div> </div><div>not with the set object but with the text and the array object that have a data structure specific part in their documentation. <br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 7, 2021 at 10:24 AM Pierre Alexandre Tremblay <<a href="mailto:tremblap@gmail.com">tremblap@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks for the quick reply!<br>
<br>
2 use-cases.<br>
<br>
1- we can generate or retrieve a dataset's content to use natively in the creative coding environment (Max Pd Sc) so that it integrates in other workflows of data mangling and drawing. We already have in our dataset object file support and single point entry and query but this allow batch dump and load. The structure is:<br>
<br>
{<br>
        "cols" : 3,<br>
        "data" :        {<br>
                "entry-0" : [ -0.06755, 0.44185, -0.33835 ],<br>
                "entry-1" : [ -0.12305, -0.24085, 0.31295 ],<br>
                "entry-2" : [ -0.0595, -0.2881, 0.0597 ]<br>
        }<br>
<br>
}<br>
<br>
<br>
2- we can retrieve or set the state of a complex objects. Our object will spit out its internal status ( for instance, a neural net) and we can use the values of its parameters, like below. More interestingly, we can also query its structure and use that information too.<br>
<br>
{<br>
        "layers" : [            {<br>
                        "activation" : 3,<br>
                        "biases" : [ -3.076234734727154, 0.772760846709679 ],<br>
                        "cols" : 2,<br>
                        "rows" : 1,<br>
                        "weights" : [ [ 6.015551733036155, -1.826803841455323 ] ]<br>
                }<br>
,               {<br>
                        "activation" : 3,<br>
                        "biases" : [ -0.490600074475542 ],<br>
                        "cols" : 1,<br>
                        "rows" : 2,<br>
                        "weights" : [ [ -3.115116035462417 ], [ -3.969281643687132 ] ]<br>
                }<br>
]<br>
}<br>
<br>
The key-value nesting is quite powerful for this type of open structure...<br>
<br>
> On 7 Sep 2021, at 15:51, Christof Ressi <<a href="mailto:info@christofressi.com" target="_blank">info@christofressi.com</a>> wrote:<br>
> <br>
> Can you give an example of how the data is structured?<br>
> <br>
> In which ways are users supposed to interact with the data?<br>
> <br>
> Christof<br>
> <br>
> On 07.09.2021 16:37, Pierre Alexandre Tremblay wrote:<br>
>> Dear all<br>
>> <br>
>> I am trying to find the most Pd-vanilla-way to interface with our Dataset object in the FluCoMa project. In Max and SuperCollider we use Dictionaries, which are nestable and queryable in powerful programmatic ways, working essentially like interfaces to JSON-like data structures.<br>
>> <br>
>> I’ve looked at [struct] but the [set] object does not allow to do symbols and (list of) floats, and [appends] seem to have the same limitations. In all cases, I’m not certain it is the best approach in any cases to create such a list in Pd...<br>
>> <br>
>> I wonder how people do it and if I am missing an obvious workflow, especially with nested structures.<br>
>> <br>
>> Any pointer (pun intended) welcome<br>
>> <br>
>> p<br>
>> <br>
>> <br>
>> <br>
>> <br>
>> <br>
>> _______________________________________________<br>
>> <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
>> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">José Rafael Subía Valdez<br><div><a href="http://www.jrsv.net" target="_blank">www.jrsv.net</a><br><div><p style="margin:0px 0px 18px;padding:0px;border:0px;font-size:13px;vertical-align:baseline;background-image:initial;background-position:initial;background-repeat:initial;line-height:18px;color:rgb(31,30,35);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif"><br></p><p style="margin:0px 0px 18px;padding:0px;border:0px;font-size:13px;vertical-align:baseline;background-image:initial;background-position:initial;background-repeat:initial;line-height:18px;color:rgb(31,30,35);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif"></p><div style="text-align:left"><i>"...I am an Anarchist! Wherefore I will</i></div><i><div style="text-align:left"><i>Not rule, and also ruled I will not be!"</i></div></i><p></p></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><p style="text-align:left;margin:0px 0px 18px;padding:0px;border:0px;font-size:13px;vertical-align:baseline;background-image:initial;background-position:initial;background-repeat:initial;line-height:18px;color:rgb(31,30,35);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif">- John Henry Mackay -</p></div></div></blockquote></blockquote><div><div><br><div><br><font face="'lucida grande', tahoma, verdana, arial, sans-serif" size="4"><span style="font-size:14px;line-height:17px"><br></span></font></div></div></div></div></div>