timeintervalsnode properties (deprecated)
![]() |
Note: This node was deprecated in version 18 of SPSS® Modeler and replaced by the new Time
Series node.
The Time Intervals node specifies intervals and creates labels (if needed) for
modeling time series data. If values are not evenly spaced, the node can pad or aggregate values as
needed to generate a uniform interval between records. |
Example
node = stream.create("timeintervals", "My node")
node.setPropertyValue("interval_type", "SecondsPerDay")
node.setPropertyValue("days_per_week", 4)
node.setPropertyValue("week_begins_on", "Tuesday")
node.setPropertyValue("hours_per_day", 10)
node.setPropertyValue("day_begins_hour", 7)
node.setPropertyValue("day_begins_minute", 5)
node.setPropertyValue("day_begins_second", 17)
node.setPropertyValue("mode", "Label")
node.setPropertyValue("year_start", 2005)
node.setPropertyValue("month_start", "January")
node.setPropertyValue("day_start", 4)
node.setKeyedPropertyValue("pad", "AGE", "MeanOfRecentPoints")
node.setPropertyValue("agg_mode", "Specify")
node.setPropertyValue("agg_set_default", "Last")
timeintervalsnode properties |
Data type | Property description |
---|---|---|
interval_type |
None
Periods
CyclicPeriods
Years
Quarters
Months
DaysPerWeek
DaysNonPeriodic
HoursPerDay
HoursNonPeriodic
MinutesPerDay
MinutesNonPeriodic
SecondsPerDay
SecondsNonPeriodic |
|
mode |
Label
Create |
Specifies whether you want to label records consecutively or build the series based on a specified date, timestamp, or time field. |
field |
field | When building the series from the data, specifies the field that indicates the date or time for each record. |
period_start |
integer | Specifies the starting interval for periods or cyclic periods |
cycle_start |
integer | Starting cycle for cyclic periods. |
year_start |
integer | For interval types where applicable, year in which the first interval falls. |
quarter_start |
integer | For interval types where applicable, quarter in which the first interval falls. |
month_start |
|
|
day_start |
integer | |
hour_start |
integer | |
minute_start |
integer | |
second_start |
integer | |
periods_per_cycle |
integer | For cyclic periods, number within each cycle. |
fiscal_year_begins |
|
For quarterly intervals, specifies the month when the fiscal year begins. |
week_begins_on |
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday |
For periodic intervals (days per week, hours per day, minutes per day, and seconds per day), specifies the day on which the week begins. |
day_begins_hour |
integer | For periodic intervals (hours per day, minutes per day, seconds
per day), specifies the hour when the day begins. Can be used in combination
with day_begins_minute and day_begins_second to
specify an exact time such as 8:05:01. See usage example below. |
day_begins_minute |
integer | For periodic intervals (hours per day, minutes per day, seconds per day), specifies the minute when the day begins (for example, the 5 in 8:05). |
day_begins_second |
integer | For periodic intervals (hours per day, minutes per day, seconds per day), specifies the second when the day begins (for example, the 17 in 8:05:17). |
days_per_week |
integer | For periodic intervals (days per week, hours per day, minutes per day, and seconds per day), specifies the number of days per week. |
hours_per_day |
integer | For periodic intervals (hours per day, minutes per day, and seconds per day), specifies the number of hours in the day. |
interval_increment |
1
2
3
4
5
6
10
15
20
30 |
For minutes per day and seconds per day, specifies the number of minutes or seconds to increment for each record. |
field_name_extension |
string | |
field_name_extension_as_prefix |
flag | |
date_format |
|
|
time_format |
|
|
aggregate |
Mean
Sum
Mode
Min
Max
First
Last
TrueIfAnyTrue |
Specifies the aggregation method for a field. |
pad |
Blank
MeanOfRecentPoints
True
False |
Specifies the padding method for a field. |
agg_mode |
All
Specify |
Specifies whether to aggregate or pad all fields with default functions as needed or specify the fields and functions to use. |
agg_range_default |
Mean
Sum
Mode
Min
Max |
Specifies the default function to use when aggregating continuous fields. |
agg_set_default |
Mode
First
Last |
Specifies the default function to use when aggregating nominal fields. |
agg_flag_default |
TrueIfAnyTrue
Mode
First
Last |
|
pad_range_default |
Blank
MeanOfRecentPoints |
Specifies the default function to use when padding continuous fields. |
pad_set_default |
Blank
MostRecentValue |
|
pad_flag_default |
Blank
True
False |
|
max_records_to_create |
integer | Specifies the maximum number of records to create when padding the series. |
estimation_from_beginning |
flag | |
estimation_to_end |
flag | |
estimation_start_offset |
integer | |
estimation_num_holdouts |
integer | |
create_future_records |
flag | |
num_future_records |
integer | |
create_future_field |
flag | |
future_field_name |
string |