View Javadoc
1   package com.acumenvelocity.ath.model;
2   
3   import java.util.Objects;
4   
5   import com.fasterxml.jackson.annotation.JsonProperty;
6   
7   import io.swagger.annotations.ApiModelProperty;
8   
9   @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaInflectorServerCodegen", comments = "Generator version: 7.15.0")
10  public class DatasetStats {
11    @JsonProperty("files_processed")
12    private Integer filesProcessed = 0;
13  
14    @JsonProperty("total_segments")
15    private Long totalSegments = 0l;
16  
17    @JsonProperty("train_segments")
18    private Long trainSegments = 0l;
19  
20    @JsonProperty("validation_segments")
21    private Long validationSegments = 0l;
22  
23    @JsonProperty("test_segments")
24    private Long testSegments = 0l;
25  
26    /**
27     * Number of files successfully processed.
28     **/
29    public DatasetStats filesProcessed(Integer filesProcessed) {
30      this.filesProcessed = filesProcessed;
31      return this;
32    }
33  
34    @ApiModelProperty(example = "15", required = true, value = "Number of files successfully processed.")
35    @JsonProperty("files_processed")
36    public Integer getFilesProcessed() {
37      return filesProcessed;
38    }
39  
40    public void setFilesProcessed(Integer filesProcessed) {
41      this.filesProcessed = filesProcessed;
42    }
43  
44    /**
45     * Total number of translation segments in the dataset.
46     **/
47    public DatasetStats totalSegments(Long totalSegments) {
48      this.totalSegments = totalSegments;
49      return this;
50    }
51  
52    @ApiModelProperty(example = "125000", required = true, value = "Total number of translation segments in the dataset.")
53    @JsonProperty("total_segments")
54    public Long getTotalSegments() {
55      return totalSegments;
56    }
57  
58    public void setTotalSegments(Long totalSegments) {
59      this.totalSegments = totalSegments;
60    }
61  
62    /**
63     * Number of segments allocated for training (80%).
64     **/
65    public DatasetStats trainSegments(Long trainSegments) {
66      this.trainSegments = trainSegments;
67      return this;
68    }
69  
70    @ApiModelProperty(example = "100000", value = "Number of segments allocated for training (80%).")
71    @JsonProperty("train_segments")
72    public Long getTrainSegments() {
73      return trainSegments;
74    }
75  
76    public void setTrainSegments(Long trainSegments) {
77      this.trainSegments = trainSegments;
78    }
79  
80    /**
81     * Number of segments allocated for validation (10%).
82     **/
83    public DatasetStats validationSegments(Long validationSegments) {
84      this.validationSegments = validationSegments;
85      return this;
86    }
87  
88    @ApiModelProperty(example = "12500", value = "Number of segments allocated for validation (10%).")
89    @JsonProperty("validation_segments")
90    public Long getValidationSegments() {
91      return validationSegments;
92    }
93  
94    public void setValidationSegments(Long validationSegments) {
95      this.validationSegments = validationSegments;
96    }
97  
98    /**
99     * Number of segments allocated for testing (10%).
100    **/
101   public DatasetStats testSegments(Long testSegments) {
102     this.testSegments = testSegments;
103     return this;
104   }
105 
106   @ApiModelProperty(example = "12500", value = "Number of segments allocated for testing (10%).")
107   @JsonProperty("test_segments")
108   public Long getTestSegments() {
109     return testSegments;
110   }
111 
112   public void setTestSegments(Long testSegments) {
113     this.testSegments = testSegments;
114   }
115 
116   @Override
117   public boolean equals(Object o) {
118     if (this == o) {
119       return true;
120     }
121     if (o == null || getClass() != o.getClass()) {
122       return false;
123     }
124     DatasetStats datasetStats = (DatasetStats) o;
125     return Objects.equals(filesProcessed, datasetStats.filesProcessed) &&
126         Objects.equals(totalSegments, datasetStats.totalSegments) &&
127         Objects.equals(trainSegments, datasetStats.trainSegments) &&
128         Objects.equals(validationSegments, datasetStats.validationSegments) &&
129         Objects.equals(testSegments, datasetStats.testSegments);
130   }
131 
132   @Override
133   public int hashCode() {
134     return Objects.hash(filesProcessed, totalSegments, trainSegments, validationSegments,
135         testSegments);
136   }
137 
138   @Override
139   public String toString() {
140     StringBuilder sb = new StringBuilder();
141     sb.append("class DatasetStats {\n");
142 
143     sb.append("    filesProcessed: ").append(toIndentedString(filesProcessed)).append("\n");
144     sb.append("    totalSegments: ").append(toIndentedString(totalSegments)).append("\n");
145     sb.append("    trainSegments: ").append(toIndentedString(trainSegments)).append("\n");
146     sb.append("    validationSegments: ").append(toIndentedString(validationSegments)).append("\n");
147     sb.append("    testSegments: ").append(toIndentedString(testSegments)).append("\n");
148     sb.append("}");
149     return sb.toString();
150   }
151 
152   /**
153    * Convert the given object to string with each line indented by 4 spaces
154    * (except the first line).
155    */
156   private String toIndentedString(Object o) {
157     if (o == null) {
158       return "null";
159     }
160     return o.toString().replace("\n", "\n    ");
161   }
162 }