Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 106 107 [108] 109 110 ... 222

Author Topic: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06  (Read 962459 times)

splinterz

  • Bay Watcher
    • View Profile
    • Dwarf Therapist Branch
Re: Dwarf Therapist (Maintained Branch) v.25.0 | DF 40.10
« Reply #1605 on: September 17, 2014, 11:12:34 am »

I need help with a filtering script.

I would like to create a filter that lists every Dwarf who has the preference "Likes working outdoors" or "Does not mind being outdoors".

I assume I would create a script using d.has_preference(), but I don't know what to put in the brackets.  How exactly does this function work, and what are the values that I need to use to get my filter working?
what you'll have to use for now is:
Code: [Select]
d.find_preference('Does not mind being outdoors','Outdoors') || d.find_preference('Likes working outdoors','Outdoors')
there seems to be an issue with how the script engine handles (or rather doesn't handle) optional function parameters that i need to look into.

grody311

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.25.0 | DF 40.10
« Reply #1606 on: September 17, 2014, 12:52:38 pm »

what you'll have to use for now is:
Code: [Select]
d.find_preference('Does not mind being outdoors','Outdoors') || d.find_preference('Likes working outdoors','Outdoors')
there seems to be an issue with how the script engine handles (or rather doesn't handle) optional function parameters that i need to look into.

Perfect.  I don't mind using two separate scripts for now.  Thanks!

So I guess the arguments need to be d.find_preferences('exact preference','preference category').  Good to know.

edit: As a side note, after some experimenting, it appears that using the optional parameter in this case seems to work correctly.
« Last Edit: September 17, 2014, 01:00:03 pm by grody311 »
Logged

thistleknot

  • Bay Watcher
  • Escaped Normalized Spreadsheet Berserker
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.25.0 | DF 40.10
« Reply #1607 on: September 17, 2014, 10:25:02 pm »

I've been lurking, but I've been working on a new algorithm that transforms the %'s to a more "natural" distribution curve.

It's hard to describe... but s transform is fucking awesome IMO.

It just has a "jagged" shape to it's curve.

I am able to measure the change in curves by utilizing trapezoid area rules applied to integral approximation.  I so far am able to achieve some far better results than S Transform.  I was concerned it might look too much like "rank-ecdf" which ignored % gaps between values, but I found my concern was unfounded.  I think it's the best approximation of the [normal] PDF of any given dataset so far.

http://imgur.com/gallery/jyv3kGQ/new

PeridexisErrant

  • Bay Watcher
  • Dai stihó, Hrasht.
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.25.0 | DF 40.10
« Reply #1608 on: September 17, 2014, 10:41:36 pm »

If I drew a graph like that without axis labels, the whole report would fail...  (seriously, I have no idea what that is)
Logged
I maintain the DF Starter Pack - over a million downloads and still counting!
 Donations here.

thistleknot

  • Bay Watcher
  • Escaped Normalized Spreadsheet Berserker
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.25.0 | DF 40.10
« Reply #1609 on: September 17, 2014, 10:53:25 pm »

that's me listing the data probabilities (in a probability density function to each ATTRIBUTE point from 19 observed points) from 0 to 100%

but I subtracted .5

then took the ABSOLUTE VALUE of that

subtracted .5 again!

and graphed it.

seriously, if you want the worksheet, pm me, otherwise I won't bore the readers

salithus

  • Bay Watcher
  • gottagofast
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.25.0 | DF 40.10
« Reply #1610 on: September 17, 2014, 11:05:26 pm »

that's me listing the data probabilities (in a probability density function to each ATTRIBUTE point from 19 observed points) from 0 to 100%

but I subtracted .5

then took the ABSOLUTE VALUE of that

subtracted .5 again!

and graphed it.

seriously, if you want the worksheet, pm me, otherwise I won't bore the readers
one day I will understand statistics. and then the four riders will come.
Logged

splinterz

  • Bay Watcher
    • View Profile
    • Dwarf Therapist Branch
Re: Dwarf Therapist (Maintained Branch) v.26.0 | DF 40.13
« Reply #1611 on: September 18, 2014, 07:40:26 am »

v26.0 patch notes

  • 40.11/12/13 memory layouts
  • units affected by a werebeast syndrome are properly detected as cursed and will show the type of werebeast
  • added belief column type
  • added unit kills column type and information in tooltip (optional)
  • added a sort method for attribute columns to sort by the maximum potential
  • added a right click menu item to update a dwarf's custom profession with their current labors
  • gender icons have been updated to also show sexual orientation
  • added default noble colors and changed some default settings
  • added an option to decorate noble names (italicized with symbol)
  • removed general metal/stone/gem/alcohol preferences from all roles
  • added new preference groups for shearable, fishable creatures, millable, extract, crop plants
  • changed role ratings to display consistently and with a larger spread
  • changed the way body sizes are read to hopefully be more accurate
  • added retooled default roles (feelotraveller)
  • general cleanup, fixes and many back-end optimizations (Hello71)
  • fixed an issue with trait/belief conflicts not displaying properly
  • fixed custom profession sorting (although it's still case sensitive)
  • fixed optimization plans loading/displaying incorrectly in certain cases
  • fixed role preference ratings for multiple matches
  • fixed active military showing up as 'no job'
  • fixed noble color crash (stoutheart)
  • fixes for manual and file paths (Hello71)

i haven't had a lot of playtesting with this version, and there's quite a lot of changes, so let me know if anything explodes. i'll also start adding releases on the github page from now on.

thraxarious

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.26.0 | DF 40.13
« Reply #1612 on: September 18, 2014, 09:18:33 am »

Awesome! Thanks!
Logged

Aquathug

  • Bay Watcher
  • This text is personal.
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.26.0 | DF 40.13
« Reply #1613 on: September 18, 2014, 11:14:28 am »

Incredible. :D

Thanks to all the DT devs who keep this project alive and kickin.

Logged

thistleknot

  • Bay Watcher
  • Escaped Normalized Spreadsheet Berserker
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.26.0 | DF 40.13
« Reply #1614 on: September 18, 2014, 01:35:24 pm »

So turns out all my work on s transform and integral's has lead me full circle.
Spoiler: TLDR (click to show/hide)

So I just wasted a whole lot of time going full circle.

However, what I would like to focus on.  Is how to deal with datasets whose overall average doesn't = 50%.

I fear that combining them together will slightly skew the overall weighted average of values.

The data is already normalized <>50% on a 50/50 split. (except for extremely skewed datasets that contain a lot of null values: skills/preferences, but there mean is ~.5)

So I was thinking, since the drawing method has been updated to draw from min/max of weighted average outputs, and 50% = median.

Why not do something similar, but instead of adding up the %'s as if they are 0 to 100%.

Subtract .5 from each %
and get a set of values that are
~-50% to ~+50%
but has a perfect even average of 0.

update
you know what, I don't think that would do anything.  One would have to subtract from the datasets mean, and that would have a different issue

Since we end up doing a final transform on the outputted data, and it seems that the #'s on the backend never really add up to 0 or 100% (hence why the new drawing method is used).  We can still work with these #'s, albeit in a slightly better mean adjusted approach.
« Last Edit: September 18, 2014, 02:38:59 pm by thistleknot »
Logged

ResMar

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.26.0 | DF 40.13
« Reply #1615 on: September 18, 2014, 02:40:33 pm »

Spint, any chance you can do a brief writeup of role calculation methodology? I'm seeing a lot of interest in that as late, and it's something I would like the understand better for future edits to the documentation, but I'm probably not going to able to go off of the conversational back-and-forth going on here.
Logged
ヽ(´ー`)┌[>゜))))彡]   Dwarf Therapist User Guide

khearn

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.26.0 | DF 40.13
« Reply #1616 on: September 18, 2014, 02:55:42 pm »

Thanks for the new release. Looks like lots of interesting new stuff. Thanks especially for the body size change. I'll take a look and see if it comes up with reasonable looking numbers.

   Keith
Logged
Have them killed. Nothing solves a problem quite as effectively as simply having it killed.

lethosor

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.26.0 | DF 40.13
« Reply #1617 on: September 18, 2014, 04:25:16 pm »

i haven't had a lot of playtesting with this version, and there's quite a lot of changes, so let me know if anything explodes. i'll also start adding releases on the github page from now on.
It's difficult to tell what "Dwarf-Therapist.26.0.0.zip" is from the filename (I'm assuming it's a compiled binary, in which case specifying the platform would be helpful).
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

Hello71

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.26.0 | DF 40.13
« Reply #1618 on: September 18, 2014, 04:28:09 pm »

[now how do I delete this...]
« Last Edit: September 18, 2014, 04:29:57 pm by Hello71 »
Logged

khearn

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.26.0 | DF 40.13
« Reply #1619 on: September 18, 2014, 04:54:23 pm »

i haven't had a lot of playtesting with this version, and there's quite a lot of changes, so let me know if anything explodes. i'll also start adding releases on the github page from now on.
It's difficult to tell what "Dwarf-Therapist.26.0.0.zip" is from the filename (I'm assuming it's a compiled binary, in which case specifying the platform would be helpful).

Agreed. I looked in it and it contains a .exe (along with other files), so I assume it's just a windows release. I had no problems compiling for linux from the source .zip file.

Now if I could only figure out how to get git to give me the correct dfhack sources so I could compile it. But that's not germane to this thread.

   Keith
Logged
Have them killed. Nothing solves a problem quite as effectively as simply having it killed.
Pages: 1 ... 106 107 [108] 109 110 ... 222